Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2.2_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") translateModel(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,tolerance=1e-12,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.00115/0.00115, allocations: 92.53 kB / 16.3 MB, free: 5.535 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.001382/0.001383, allocations: 185 kB / 17.2 MB, free: 5.469 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.813/1.813, allocations: 205.4 MB / 223.4 MB, free: 13.18 MB / 190.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.000474/0.0004742, allocations: 19.98 kB / 280.1 MB, free: 3.758 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1285/0.129, allocations: 47.57 MB / 327.7 MB, free: 4.117 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.003573/0.1326, allocations: 3.141 MB / 330.8 MB, free: 0.9531 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001564/0.1342, allocations: 1.022 MB / 331.9 MB, free: 15.93 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001785/0.1344, allocations: 11.94 kB / 331.9 MB, free: 15.91 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 9.685e-05/0.1345, allocations: 51.58 kB / 331.9 MB, free: 15.86 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003402/0.1348, allocations: 195.4 kB / 332.1 MB, free: 15.67 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003356/0.1352, allocations: 127.8 kB / 332.2 MB, free: 15.55 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005134/0.1357, allocations: 467 kB / 332.7 MB, free: 15.09 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002547/0.136, allocations: 143.9 kB / 332.8 MB, free: 14.95 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002921/0.1363, allocations: 235.2 kB / 333.1 MB, free: 14.72 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003621/0.1366, allocations: 286.9 kB / 333.3 MB, free: 14.44 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.465e-05/0.1367, allocations: 32 kB / 333.4 MB, free: 14.41 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.37e-05/0.1368, allocations: 32 kB / 333.4 MB, free: 14.38 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.794e-05/0.1369, allocations: 99.62 kB / 333.5 MB, free: 14.28 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001239/0.137, allocations: 125.4 kB / 333.6 MB, free: 14.15 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005361/0.1376, allocations: 0.5923 MB / 334.2 MB, free: 13.55 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.1376, allocations: 0 / 334.2 MB, free: 13.55 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.1376, allocations: 0 / 334.2 MB, free: 13.55 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.076e-06/0.1376, allocations: 0 / 334.2 MB, free: 13.55 MB / 286.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.002339/0.14, allocations: 0.9447 MB / 335.2 MB, free: 12.55 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.86e-05/0.14, allocations: 12.03 kB / 335.2 MB, free: 12.54 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000128/0.1401, allocations: 63.27 kB / 335.2 MB, free: 12.48 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005175/0.1407, allocations: 385 kB / 335.6 MB, free: 12.06 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.232e-05/0.1407, allocations: 25 kB / 335.6 MB, free: 12.04 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.711e-05/0.1408, allocations: 43.92 kB / 335.7 MB, free: 11.99 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001322/0.1421, allocations: 0.5942 MB / 336.3 MB, free: 11.38 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.176e-05/0.1422, allocations: 0 / 336.3 MB, free: 11.38 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.752e-05/0.1422, allocations: 16 kB / 336.3 MB, free: 11.36 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.049e-05/0.1422, allocations: 8 kB / 336.3 MB, free: 11.36 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001693/0.1439, allocations: 0.6402 MB / 336.9 MB, free: 10.71 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003373/0.1473, allocations: 2.059 MB / 339 MB, free: 8.559 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003632/0.151, allocations: 0.9327 MB / 339.9 MB, free: 7.617 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.905e-05/0.151, allocations: 8.609 kB / 339.9 MB, free: 7.609 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001159/0.1522, allocations: 427.7 kB / 340.4 MB, free: 7.176 MB / 286.1 MB Notification: Performance of pre-optimization done (n=39): time 2.855e-06/0.1522, allocations: 4 kB / 340.4 MB, free: 7.172 MB / 286.1 MB Notification: Performance of matching and sorting (n=39): time 0.009419/0.1616, allocations: 2.041 MB / 342.4 MB, free: 5.102 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001029/0.1618, allocations: 85.06 kB / 342.5 MB, free: 5 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006434/0.1624, allocations: 377.7 kB / 342.8 MB, free: 4.617 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 7.397e-05/0.1625, allocations: 33.7 kB / 342.9 MB, free: 4.578 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002601/0.1628, allocations: 224.6 kB / 343.1 MB, free: 4.352 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001627/0.163, allocations: 134.1 kB / 343.2 MB, free: 4.219 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.224e-05/0.163, allocations: 4 kB / 343.2 MB, free: 4.215 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002498/0.1633, allocations: 354.8 kB / 343.6 MB, free: 3.859 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009178/0.1642, allocations: 304.6 kB / 343.9 MB, free: 3.559 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009348/0.1651, allocations: 342.1 kB / 344.2 MB, free: 3.215 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009226/0.1661, allocations: 323.5 kB / 344.5 MB, free: 2.895 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.231e-06/0.1661, allocations: 0 / 344.5 MB, free: 2.895 MB / 286.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.004523/0.1706, allocations: 1.175 MB / 345.7 MB, free: 1.703 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.354e-05/0.1707, allocations: 37.7 kB / 345.7 MB, free: 1.66 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.755e-05/0.1707, allocations: 3.984 kB / 345.7 MB, free: 1.656 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00132/0.1721, allocations: 427.8 kB / 346.2 MB, free: 1.238 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004478/0.1725, allocations: 95.86 kB / 346.3 MB, free: 1.145 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008041/0.1806, allocations: 3.631 MB / 349.9 MB, free: 13.38 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006945/0.1813, allocations: 99.62 kB / 350 MB, free: 13.29 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.259e-05/0.1814, allocations: 23.98 kB / 350 MB, free: 13.26 MB / 302.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 ($whenCondition1,simpleTriac.idealDiode.off,simpleTriac.idealDiode1.off,$PRE.pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.T_start,$PRE.pulseCurrent.signalSource.count,pulseCurrent.signalSource.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 12} Notification: Performance of prepare postOptimizeDAE: time 0.0003328/0.1817, allocations: 165.8 kB / 350.2 MB, free: 13.09 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.057e-05/0.1818, allocations: 51.39 kB / 350.2 MB, free: 13.04 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000119/0.1819, allocations: 52.36 kB / 350.3 MB, free: 12.99 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.308e-06/0.1819, allocations: 4 kB / 350.3 MB, free: 12.98 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.08e-06/0.182, allocations: 0 / 350.3 MB, free: 12.98 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.304e-06/0.182, allocations: 3.938 kB / 350.3 MB, free: 12.98 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006522/0.1826, allocations: 0.5912 MB / 350.9 MB, free: 12.34 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.971e-06/0.1826, allocations: 3.953 kB / 350.9 MB, free: 12.34 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000426/0.1831, allocations: 91.86 kB / 351 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001113/0.1842, allocations: 417.7 kB / 351.4 MB, free: 11.84 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.788e-05/0.1842, allocations: 7.984 kB / 351.4 MB, free: 11.83 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007795/0.192, allocations: 3.613 MB / 355 MB, free: 8.082 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.648e-06/0.1921, allocations: 0 / 355 MB, free: 8.082 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004397/0.1965, allocations: 1.419 MB / 356.4 MB, free: 6.641 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002653/0.1968, allocations: 168.5 kB / 356.6 MB, free: 6.457 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.426e-05/0.1969, allocations: 12 kB / 356.6 MB, free: 6.445 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005235/0.1974, allocations: 79.92 kB / 356.7 MB, free: 6.367 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001439/0.1975, allocations: 51.92 kB / 356.7 MB, free: 6.316 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.605e-05/0.1976, allocations: 12 kB / 356.7 MB, free: 6.305 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002942/0.1979, allocations: 275.2 kB / 357 MB, free: 6.039 MB / 302.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1979, allocations: 0 / 357 MB, free: 6.039 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006434/0.1986, allocations: 171.7 kB / 357.2 MB, free: 5.871 MB / 302.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001739/0.1987, allocations: 115.2 kB / 357.3 MB, free: 5.746 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002609/0.2013, allocations: 0.9352 MB / 358.2 MB, free: 4.785 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.2014, allocations: 0 / 358.2 MB, free: 4.785 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001495/0.2029, allocations: 0.5763 MB / 358.8 MB, free: 4.195 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004243/0.2033, allocations: 69.52 kB / 358.9 MB, free: 4.125 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002999/0.2063, allocations: 1.384 MB / 360.2 MB, free: 2.723 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004376/0.2068, allocations: 0.8469 MB / 361.1 MB, free: 1.852 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.00021/0.207, allocations: 43.27 kB / 361.1 MB, free: 1.805 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.004e-05/0.2071, allocations: 27.42 kB / 361.2 MB, free: 1.777 MB / 302.1 MB Notification: Performance of SimCode: time 1.132e-06/0.2071, allocations: 4 kB / 361.2 MB, free: 1.773 MB / 302.1 MB Notification: Performance of Templates: time 0.01795/0.225, allocations: 11.84 MB / 373 MB, free: 5.926 MB / 318.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & ./Modelica_3.2.2_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1) Environment - environmentSimulation: