Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.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.2.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") translateModel(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,tolerance=1e-12,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.2.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.001695/0.001695, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.002107/0.002107, allocations: 194 kB / 16.25 MB, free: 6.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.057/2.057, allocations: 205.1 MB / 222.1 MB, free: 4.68 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.001769/0.001769, allocations: 47.94 kB / 278.2 MB, free: 12.68 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4253/0.4271, allocations: 46.63 MB / 324.9 MB, free: 1.922 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.007967/0.4351, allocations: 3.926 MB / 328.8 MB, free: 14.8 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002919/0.4381, allocations: 1.014 MB / 329.8 MB, free: 13.96 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003181/0.4385, allocations: 6.25 kB / 329.8 MB, free: 13.96 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00032/0.4388, allocations: 57.38 kB / 329.9 MB, free: 13.91 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003436/0.4392, allocations: 148.1 kB / 330 MB, free: 13.78 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005389/0.4397, allocations: 183.1 kB / 330.2 MB, free: 13.61 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001038/0.4408, allocations: 0.757 MB / 330.9 MB, free: 13.15 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004237/0.4412, allocations: 176.3 kB / 331.1 MB, free: 13.05 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005069/0.4417, allocations: 291.8 kB / 331.4 MB, free: 12.88 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005242/0.4423, allocations: 335.2 kB / 331.7 MB, free: 12.64 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001695/0.4424, allocations: 76.59 kB / 331.8 MB, free: 12.64 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001768/0.4426, allocations: 80.38 kB / 331.9 MB, free: 12.63 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001686/0.4428, allocations: 148.2 kB / 332 MB, free: 12.5 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003999/0.4432, allocations: 318.9 kB / 332.3 MB, free: 12.27 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001053/0.4443, allocations: 0.7919 MB / 333.1 MB, free: 11.65 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.136e-06/0.4443, allocations: 0 / 333.1 MB, free: 11.65 MB / 270.1 MB Notification: Performance of FrontEnd: time 3.006e-06/0.4443, allocations: 0 / 333.1 MB, free: 11.65 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.245e-05/0.4443, allocations: 0 / 333.1 MB, free: 11.65 MB / 270.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.002867/0.4472, allocations: 0.9811 MB / 334.1 MB, free: 10.77 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.904e-05/0.4473, allocations: 12.03 kB / 334.1 MB, free: 10.76 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001451/0.4474, allocations: 60.28 kB / 334.2 MB, free: 10.7 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005922/0.448, allocations: 394 kB / 334.6 MB, free: 10.27 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.216e-05/0.4481, allocations: 29.31 kB / 334.6 MB, free: 10.25 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.371e-05/0.4482, allocations: 40.12 kB / 334.6 MB, free: 10.21 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001356/0.4495, allocations: 0.5591 MB / 335.2 MB, free: 9.625 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.898e-05/0.4496, allocations: 0 / 335.2 MB, free: 9.625 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.433e-05/0.4496, allocations: 20 kB / 335.2 MB, free: 9.605 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.191e-05/0.4497, allocations: 8 kB / 335.2 MB, free: 9.598 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001584/0.4513, allocations: 0.5738 MB / 335.8 MB, free: 9.027 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003531/0.4548, allocations: 2.016 MB / 337.8 MB, free: 6.918 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003879/0.4587, allocations: 0.7844 MB / 338.6 MB, free: 6.125 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001008/0.4597, allocations: 369.3 kB / 338.9 MB, free: 5.762 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.732e-05/0.4598, allocations: 4 kB / 338.9 MB, free: 5.758 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001299/0.4611, allocations: 411.3 kB / 339.4 MB, free: 5.34 MB / 270.1 MB Notification: Performance of pre-optimization done (n=39): time 3.066e-06/0.4611, allocations: 0 / 339.4 MB, free: 5.34 MB / 270.1 MB Notification: Performance of matching and sorting (n=39): time 0.009982/0.4711, allocations: 1.786 MB / 341.1 MB, free: 3.523 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.768e-05/0.4712, allocations: 85.11 kB / 341.2 MB, free: 3.422 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006043/0.4719, allocations: 385.7 kB / 341.6 MB, free: 3.035 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 6.932e-05/0.4719, allocations: 37.64 kB / 341.6 MB, free: 2.992 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002373/0.4722, allocations: 224.6 kB / 341.9 MB, free: 2.766 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000162/0.4724, allocations: 134 kB / 342 MB, free: 2.633 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001918/0.4726, allocations: 70.06 kB / 342.1 MB, free: 2.555 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001989/0.4728, allocations: 350.8 kB / 342.4 MB, free: 2.203 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008344/0.4736, allocations: 264.6 kB / 342.7 MB, free: 1.945 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008346/0.4745, allocations: 325.9 kB / 343 MB, free: 1.617 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001572/0.476, allocations: 0.5368 MB / 343.5 MB, free: 1.066 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.218e-06/0.4761, allocations: 0 / 343.5 MB, free: 1.066 MB / 270.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.004969/0.481, allocations: 1.06 MB / 344.6 MB, free: 15.99 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.511e-05/0.4811, allocations: 33.64 kB / 344.6 MB, free: 15.95 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.307e-05/0.4812, allocations: 7.938 kB / 344.6 MB, free: 15.95 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001309/0.4825, allocations: 396.5 kB / 345 MB, free: 15.55 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004633/0.4829, allocations: 83.86 kB / 345.1 MB, free: 15.47 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009243/0.4922, allocations: 3.665 MB / 348.7 MB, free: 11.66 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009484/0.4932, allocations: 87.66 kB / 348.8 MB, free: 11.58 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.124e-05/0.4933, allocations: 15.98 kB / 348.8 MB, free: 11.56 MB / 286.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.0004581/0.4937, allocations: 170.5 kB / 349 MB, free: 11.39 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001741/0.4939, allocations: 43.47 kB / 349.1 MB, free: 11.34 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001731/0.4941, allocations: 48.38 kB / 349.1 MB, free: 11.3 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.343e-06/0.4941, allocations: 4 kB / 349.1 MB, free: 11.29 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.443e-06/0.4941, allocations: 0 / 349.1 MB, free: 11.29 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.151e-05/0.4942, allocations: 7.984 kB / 349.1 MB, free: 11.29 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001151/0.4953, allocations: 0.5872 MB / 349.7 MB, free: 10.65 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-05/0.4954, allocations: 7.938 kB / 349.7 MB, free: 10.64 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004682/0.4958, allocations: 71.88 kB / 349.8 MB, free: 10.57 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001245/0.4971, allocations: 396.6 kB / 350.2 MB, free: 10.18 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.779e-05/0.4972, allocations: 8 kB / 350.2 MB, free: 10.17 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009701/0.5069, allocations: 3.676 MB / 353.8 MB, free: 6.359 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.35e-06/0.5069, allocations: 0 / 353.8 MB, free: 6.359 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004968/0.5119, allocations: 1.255 MB / 355.1 MB, free: 5.082 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004434/0.5124, allocations: 176.5 kB / 355.3 MB, free: 4.891 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000145/0.5126, allocations: 11.94 kB / 355.3 MB, free: 4.879 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006341/0.5132, allocations: 59.92 kB / 355.3 MB, free: 4.82 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002413/0.5135, allocations: 47.94 kB / 355.4 MB, free: 4.773 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.637e-05/0.5136, allocations: 19.98 kB / 355.4 MB, free: 4.754 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0004077/0.514, allocations: 267.2 kB / 355.7 MB, free: 4.496 MB / 286.1 MB Notification: Performance of sort global known variables: time 4.51e-07/0.514, allocations: 0 / 355.7 MB, free: 4.496 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0008825/0.5149, allocations: 175.7 kB / 355.8 MB, free: 4.324 MB / 286.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.00029/0.5152, allocations: 111.2 kB / 356 MB, free: 4.203 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.003002/0.5182, allocations: 0.8954 MB / 356.8 MB, free: 3.281 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 6.232e-06/0.5182, allocations: 0 / 356.8 MB, free: 3.281 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001627/0.5198, allocations: 0.5385 MB / 357.4 MB, free: 2.73 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007972/0.5207, allocations: 77.41 kB / 357.5 MB, free: 2.656 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004041/0.5247, allocations: 1.328 MB / 358.8 MB, free: 1.305 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006733/0.5254, allocations: 0.8355 MB / 359.6 MB, free: 456 kB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0003094/0.5257, allocations: 39.28 kB / 359.7 MB, free: 416 kB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001229/0.5259, allocations: 35.42 kB / 359.7 MB, free: 380 kB / 286.1 MB Notification: Performance of SimCode: time 1.994e-06/0.5259, allocations: 0 / 359.7 MB, free: 380 kB / 286.1 MB Notification: Performance of Templates: time 0.0314/0.5573, allocations: 12.89 MB / 372.6 MB, free: 3.465 MB / 302.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & ./Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1)