Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,tolerance=1e-12,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") translateModel(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,tolerance=1e-12,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004866/0.004866, allocations: 101.6 kB / 15.73 MB, free: 5.98 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001206/0.001206, allocations: 187.4 kB / 16.67 MB, free: 5.918 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.682/1.682, allocations: 205.1 MB / 222.6 MB, free: 4.492 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001425/0.001425, allocations: 51.83 kB / 326.6 MB, free: 14.57 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1405/0.1419, allocations: 46.62 MB / 373.2 MB, free: 1.449 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.009046/0.151, allocations: 3.887 MB / 377.1 MB, free: 13.54 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00346/0.1546, allocations: 1.029 MB / 378.1 MB, free: 12.5 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008417/0.1554, allocations: 8 kB / 378.1 MB, free: 12.49 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006536/0.1562, allocations: 83.2 kB / 378.2 MB, free: 12.41 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001269/0.1575, allocations: 178.5 kB / 378.4 MB, free: 12.23 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001201/0.1587, allocations: 207.7 kB / 378.6 MB, free: 12.03 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002009/0.1608, allocations: 0.7627 MB / 379.3 MB, free: 11.27 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00063/0.1614, allocations: 168.9 kB / 379.5 MB, free: 11.09 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001007/0.1624, allocations: 291 kB / 379.8 MB, free: 10.81 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001058/0.1635, allocations: 338.7 kB / 380.1 MB, free: 10.48 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003978/0.164, allocations: 80 kB / 380.2 MB, free: 10.4 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004224/0.1644, allocations: 80 kB / 380.3 MB, free: 10.32 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003041/0.1647, allocations: 147.5 kB / 380.4 MB, free: 10.18 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008892/0.1656, allocations: 318.5 kB / 380.7 MB, free: 9.863 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001501/0.1671, allocations: 0.8021 MB / 381.5 MB, free: 9.059 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.935e-06/0.1672, allocations: 3.938 kB / 381.5 MB, free: 9.055 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.436e-06/0.1672, allocations: 0 / 381.5 MB, free: 9.055 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.076e-05/0.1672, allocations: 0 / 381.5 MB, free: 9.055 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.004738/0.172, allocations: 0.9758 MB / 382.5 MB, free: 8.023 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.446e-05/0.1721, allocations: 12.03 kB / 382.5 MB, free: 8.012 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003534/0.1724, allocations: 60.28 kB / 382.6 MB, free: 7.953 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001209/0.1737, allocations: 398 kB / 383 MB, free: 7.523 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.344e-05/0.1738, allocations: 29.38 kB / 383 MB, free: 7.496 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001659/0.1739, allocations: 40.12 kB / 383 MB, free: 7.457 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001897/0.1758, allocations: 0.5669 MB / 383.6 MB, free: 6.867 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.41e-05/0.1759, allocations: 0 / 383.6 MB, free: 6.867 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.319e-05/0.176, allocations: 12 kB / 383.6 MB, free: 6.855 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.004e-05/0.176, allocations: 8 kB / 383.6 MB, free: 6.848 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002221/0.1782, allocations: 0.5738 MB / 384.2 MB, free: 6.273 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005194/0.1834, allocations: 2.004 MB / 386.2 MB, free: 4.176 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00459/0.1881, allocations: 0.7916 MB / 387 MB, free: 3.375 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001072/0.1892, allocations: 360.7 kB / 387.3 MB, free: 3.02 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.004e-05/0.1893, allocations: 8 kB / 387.3 MB, free: 3.012 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001137/0.1904, allocations: 403.5 kB / 387.7 MB, free: 2.602 MB / 318.1 MB Notification: Performance of pre-optimization done (n=39): time 4.348e-06/0.1904, allocations: 4 kB / 387.7 MB, free: 2.598 MB / 318.1 MB Notification: Performance of matching and sorting (n=39): time 0.01045/0.2009, allocations: 1.783 MB / 389.5 MB, free: 0.7852 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001488/0.2011, allocations: 85.11 kB / 389.6 MB, free: 0.6836 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008844/0.202, allocations: 389.6 kB / 390 MB, free: 304 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001008/0.2021, allocations: 29.7 kB / 390 MB, free: 268 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003135/0.2025, allocations: 228.6 kB / 390.2 MB, free: 36 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002499/0.2027, allocations: 130.2 kB / 390.4 MB, free: 15.9 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002736/0.203, allocations: 70.06 kB / 390.4 MB, free: 15.82 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000246/0.2033, allocations: 350.8 kB / 390.8 MB, free: 15.47 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001141/0.2044, allocations: 276.6 kB / 391 MB, free: 15.2 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001185/0.2057, allocations: 313.9 kB / 391.3 MB, free: 14.88 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002142/0.2078, allocations: 0.5407 MB / 391.9 MB, free: 14.33 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.002e-05/0.2078, allocations: 4 kB / 391.9 MB, free: 14.32 MB / 334.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.006184/0.214, allocations: 1.052 MB / 392.9 MB, free: 13.26 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.623e-05/0.2142, allocations: 33.69 kB / 393 MB, free: 13.22 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.759e-05/0.2142, allocations: 0 / 393 MB, free: 13.22 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001857/0.2161, allocations: 392.5 kB / 393.4 MB, free: 12.84 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006397/0.2167, allocations: 87.86 kB / 393.4 MB, free: 12.75 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.012/0.2288, allocations: 3.684 MB / 397.1 MB, free: 8.922 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001068/0.2299, allocations: 83.66 kB / 397.2 MB, free: 8.84 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000129/0.2301, allocations: 12 kB / 397.2 MB, free: 8.828 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 (pulseCurrent.signalSource.count,$PRE.pulseCurrent.signalSource.count,pulseCurrent.signalSource.T_start,$PRE.pulseCurrent.signalSource.T_start,simpleTriac.idealDiode1.off,simpleTriac.idealDiode.off,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,12)} Notification: Performance of prepare postOptimizeDAE: time 0.0004588/0.2306, allocations: 173.8 kB / 397.4 MB, free: 8.648 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001915/0.2308, allocations: 43.47 kB / 397.4 MB, free: 8.605 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001942/0.231, allocations: 52.38 kB / 397.5 MB, free: 8.551 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.815e-06/0.231, allocations: 8 kB / 397.5 MB, free: 8.543 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/0.231, allocations: 0 / 397.5 MB, free: 8.543 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.027e-05/0.231, allocations: 7.984 kB / 397.5 MB, free: 8.535 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001156/0.2322, allocations: 0.5871 MB / 398.1 MB, free: 7.898 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.438e-05/0.2322, allocations: 3.938 kB / 398.1 MB, free: 7.895 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00062/0.2329, allocations: 75.88 kB / 398.2 MB, free: 7.82 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001487/0.2344, allocations: 392.6 kB / 398.6 MB, free: 7.434 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.21e-05/0.2345, allocations: 12 kB / 398.6 MB, free: 7.422 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01133/0.2458, allocations: 3.661 MB / 402.2 MB, free: 3.621 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.072e-06/0.2459, allocations: 4.047 kB / 402.2 MB, free: 3.617 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005811/0.2517, allocations: 1.251 MB / 403.5 MB, free: 2.344 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004691/0.2522, allocations: 180.6 kB / 403.7 MB, free: 2.148 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001734/0.2524, allocations: 11.94 kB / 403.7 MB, free: 2.137 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007446/0.2532, allocations: 63.92 kB / 403.7 MB, free: 2.074 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002167/0.2534, allocations: 43.94 kB / 403.8 MB, free: 2.031 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.533e-05/0.2535, allocations: 19.98 kB / 403.8 MB, free: 2.012 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005018/0.254, allocations: 275.1 kB / 404.1 MB, free: 1.742 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.254, allocations: 0 / 404.1 MB, free: 1.742 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.00108/0.2551, allocations: 167.8 kB / 404.2 MB, free: 1.578 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (L.i,simpleTriac.thyristor.vControl,simpleTriac.thyristor1.vControl) * Number of discrete variables: 5 ($whenCondition1,simpleTriac.idealDiode.off,simpleTriac.idealDiode1.off,pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.count) * Number of discrete states: 1 (pulseCurrent.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002735/0.2554, allocations: 119.1 kB / 404.3 MB, free: 1.453 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00331/0.2587, allocations: 0.8721 MB / 405.2 MB, free: 0.5547 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.989e-06/0.2588, allocations: 0 / 405.2 MB, free: 0.5547 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001958/0.2607, allocations: 0.5373 MB / 405.8 MB, free: 4 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007525/0.2615, allocations: 77.53 kB / 405.8 MB, free: 15.93 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004184/0.2657, allocations: 1.172 MB / 407 MB, free: 14.72 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006398/0.2664, allocations: 0.8316 MB / 407.8 MB, free: 13.87 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003149/0.2667, allocations: 43.27 kB / 407.9 MB, free: 13.82 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001571/0.2669, allocations: 27.44 kB / 407.9 MB, free: 13.8 MB / 350.1 MB Notification: Performance of SimCode: time 2.034e-06/0.2669, allocations: 0 / 407.9 MB, free: 13.8 MB / 350.1 MB Notification: Performance of Templates: time 0.02796/0.2948, allocations: 13.24 MB / 421.1 MB, free: 0.5312 MB / 350.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.makefile (rm -f Modelica_3.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & ./Modelica_3.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1)