Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,tolerance=1e-12,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|L.i|simpleTriac.thyristor.vControl|simpleTriac.thyristor1.vControl",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") translateModel(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,tolerance=1e-12,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|L.i|simpleTriac.thyristor.vControl|simpleTriac.thyristor1.vControl",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001633/0.00164, allocations: 115.9 kB / 18.41 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001828/0.001828, allocations: 203.5 kB / 19.36 MB, free: 3.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.662/1.662, allocations: 227.4 MB / 247.5 MB, free: 10.37 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001519/0.00152, allocations: 59.81 kB / 308.4 MB, free: 15.9 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1153/0.1168, allocations: 50.53 MB / 358.9 MB, free: 13.35 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.005032/0.1219, allocations: 4.097 MB / 363 MB, free: 9.234 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001701/0.1236, allocations: 1.067 MB / 364.1 MB, free: 8.16 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001686/0.1238, allocations: 8 kB / 364.1 MB, free: 8.152 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002105/0.1241, allocations: 87.14 kB / 364.2 MB, free: 8.066 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002835/0.1243, allocations: 174.4 kB / 364.3 MB, free: 7.895 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004622/0.1248, allocations: 231.6 kB / 364.6 MB, free: 7.668 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007259/0.1255, allocations: 0.8173 MB / 365.4 MB, free: 6.848 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002734/0.1258, allocations: 172.9 kB / 365.5 MB, free: 6.672 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003876/0.1262, allocations: 322.9 kB / 365.9 MB, free: 6.355 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003565/0.1266, allocations: 354.6 kB / 366.2 MB, free: 6.008 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001005/0.1267, allocations: 84 kB / 366.3 MB, free: 5.926 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001314/0.1268, allocations: 92 kB / 366.4 MB, free: 5.836 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001383/0.127, allocations: 163.5 kB / 366.5 MB, free: 5.676 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003095/0.1273, allocations: 334.5 kB / 366.9 MB, free: 5.348 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007661/0.1281, allocations: 0.8566 MB / 367.7 MB, free: 4.488 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.1281, allocations: 0 / 367.7 MB, free: 4.488 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1281, allocations: 0 / 367.7 MB, free: 4.488 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.107e-05/0.1281, allocations: 0 / 367.7 MB, free: 4.488 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.002618/0.1307, allocations: 1.05 MB / 368.8 MB, free: 3.383 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.022e-05/0.1308, allocations: 11.97 kB / 368.8 MB, free: 3.371 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000232/0.131, allocations: 72.17 kB / 368.9 MB, free: 3.301 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006009/0.1316, allocations: 418 kB / 369.3 MB, free: 2.852 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.23e-05/0.1317, allocations: 29.38 kB / 369.3 MB, free: 2.824 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.678e-05/0.1318, allocations: 36.38 kB / 369.3 MB, free: 2.789 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001288/0.133, allocations: 0.6071 MB / 369.9 MB, free: 2.152 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.2e-05/0.1331, allocations: 0 / 369.9 MB, free: 2.152 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.772e-05/0.1331, allocations: 19.98 kB / 370 MB, free: 2.133 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.049e-05/0.1331, allocations: 8 kB / 370 MB, free: 2.125 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001766/0.1349, allocations: 0.6362 MB / 370.6 MB, free: 1.492 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3095/0.4445, allocations: 2.175 MB / 372.8 MB, free: 19.27 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006171/0.4507, allocations: 0.8557 MB / 373.6 MB, free: 19.24 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002128/0.4529, allocations: 400.3 kB / 374 MB, free: 19.23 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.892e-05/0.453, allocations: 10.28 kB / 374 MB, free: 19.23 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00214/0.4552, allocations: 438.8 kB / 374.5 MB, free: 19.16 MB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 7.314e-06/0.4552, allocations: 0 / 374.5 MB, free: 19.16 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.02237/0.4776, allocations: 2.381 MB / 376.8 MB, free: 18.77 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001131/0.4778, allocations: 86.22 kB / 376.9 MB, free: 18.67 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00112/0.4789, allocations: 418 kB / 377.3 MB, free: 18.47 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001029/0.479, allocations: 33.7 kB / 377.4 MB, free: 18.43 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003039/0.4793, allocations: 235 kB / 377.6 MB, free: 18.28 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002063/0.4796, allocations: 134.1 kB / 377.7 MB, free: 18.19 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000286/0.4799, allocations: 69.81 kB / 377.8 MB, free: 18.14 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001877/0.4801, allocations: 355.7 kB / 378.1 MB, free: 17.81 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001539/0.4816, allocations: 298.6 kB / 378.4 MB, free: 17.73 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001617/0.4832, allocations: 340.5 kB / 378.8 MB, free: 17.61 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002632/0.4859, allocations: 0.5968 MB / 379.4 MB, free: 17.38 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.599e-06/0.4859, allocations: 0 / 379.4 MB, free: 17.38 MB / 302.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.005677/0.4916, allocations: 1.005 MB / 380.4 MB, free: 17.04 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.32e-05/0.4917, allocations: 34.28 kB / 380.4 MB, free: 17 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.442e-05/0.4917, allocations: 0.875 kB / 380.4 MB, free: 17 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002021/0.4938, allocations: 437.8 kB / 380.8 MB, free: 16.89 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007315/0.4945, allocations: 86.3 kB / 380.9 MB, free: 16.89 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01349/0.508, allocations: 3.817 MB / 384.7 MB, free: 14.45 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001209/0.5093, allocations: 89.5 kB / 384.8 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.081e-05/0.5094, allocations: 18.98 kB / 384.8 MB, free: 14.42 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 (trapezoidCurrent.signalSource.count,$PRE.trapezoidCurrent.signalSource.count,trapezoidCurrent.signalSource.T_start,$PRE.trapezoidCurrent.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.0003895/0.5098, allocations: 171.9 kB / 385 MB, free: 14.27 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001428/0.5099, allocations: 51.92 kB / 385.1 MB, free: 14.24 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001792/0.5101, allocations: 57.41 kB / 385.1 MB, free: 14.2 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.268e-06/0.5101, allocations: 5.219 kB / 385.1 MB, free: 14.2 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.053e-06/0.5101, allocations: 0 / 385.1 MB, free: 14.2 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.965e-06/0.5102, allocations: 3.078 kB / 385.1 MB, free: 14.2 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001187/0.5114, allocations: 0.6176 MB / 385.7 MB, free: 13.83 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.171e-06/0.5114, allocations: 0.9688 kB / 385.7 MB, free: 13.83 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007485/0.5121, allocations: 81.7 kB / 385.8 MB, free: 13.82 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001763/0.5139, allocations: 439.1 kB / 386.2 MB, free: 13.71 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.336e-05/0.514, allocations: 5.5 kB / 386.3 MB, free: 13.7 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01089/0.5249, allocations: 3.811 MB / 390.1 MB, free: 10.96 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.525, allocations: 4 kB / 390.1 MB, free: 10.96 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006105/0.5311, allocations: 1.497 MB / 391.6 MB, free: 10.18 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003179/0.5314, allocations: 177.6 kB / 391.7 MB, free: 10 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.862e-05/0.5315, allocations: 10.22 kB / 391.7 MB, free: 9.996 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000565/0.5321, allocations: 70.44 kB / 391.8 MB, free: 9.969 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001848/0.5323, allocations: 55.17 kB / 391.9 MB, free: 9.934 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.501e-05/0.5323, allocations: 14.77 kB / 391.9 MB, free: 9.93 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003647/0.5327, allocations: 295.8 kB / 392.2 MB, free: 9.75 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5327, allocations: 0 / 392.2 MB, free: 9.75 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007619/0.5335, allocations: 181.6 kB / 392.4 MB, free: 9.719 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,trapezoidCurrent.signalSource.T_start,trapezoidCurrent.signalSource.count) * Number of discrete states: 1 (trapezoidCurrent.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 22 * 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.0001848/0.5337, allocations: 110.4 kB / 392.5 MB, free: 9.621 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002774/0.5365, allocations: 0.9715 MB / 393.4 MB, free: 9.047 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.5365, allocations: 0 / 393.4 MB, free: 9.047 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00153/0.538, allocations: 0.5943 MB / 394 MB, free: 8.688 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004905/0.5385, allocations: 85.03 kB / 394.1 MB, free: 8.648 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003225/0.5418, allocations: 1.249 MB / 395.4 MB, free: 7.883 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004203/0.5422, allocations: 0.8405 MB / 396.2 MB, free: 7.121 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002174/0.5424, allocations: 46.94 kB / 396.2 MB, free: 7.094 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001152/0.5425, allocations: 32.41 kB / 396.3 MB, free: 7.086 MB / 302.1 MB Notification: Performance of SimCode: time 9.62e-07/0.5425, allocations: 4 kB / 396.3 MB, free: 7.082 MB / 302.1 MB Notification: Performance of Templates: time 0.01994/0.5625, allocations: 13.95 MB / 410.2 MB, free: 10.48 MB / 318.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1)