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.001133/0.001133, allocations: 92.12 kB / 17.35 MB, free: 6.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001328/0.001328, allocations: 196.6 kB / 18.28 MB, free: 5.5 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.7 MB / 246.8 MB, free: 11.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003363/0.0003364, allocations: 8 kB / 307.7 MB, free: 0.8281 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1294/0.1298, allocations: 51.52 MB / 359.3 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.00526/0.1351, allocations: 3.731 MB / 363 MB, free: 9.562 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002622/0.1378, allocations: 1.048 MB / 364 MB, free: 8.508 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006073/0.1384, allocations: 4 kB / 364 MB, free: 8.504 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003472/0.1388, allocations: 71.44 kB / 364.1 MB, free: 8.434 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007435/0.1395, allocations: 158.8 kB / 364.3 MB, free: 8.277 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006946/0.1402, allocations: 199.8 kB / 364.5 MB, free: 8.082 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001146/0.1414, allocations: 0.7587 MB / 365.2 MB, free: 7.32 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003494/0.1418, allocations: 149.7 kB / 365.4 MB, free: 7.172 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006462/0.1424, allocations: 263 kB / 365.6 MB, free: 6.914 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003859/0.1428, allocations: 318.6 kB / 365.9 MB, free: 6.602 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.297e-05/0.1429, allocations: 36 kB / 366 MB, free: 6.566 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001191/0.143, allocations: 36 kB / 366 MB, free: 6.531 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001167/0.1432, allocations: 115.4 kB / 366.1 MB, free: 6.418 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003021/0.1435, allocations: 312.2 kB / 366.4 MB, free: 6.105 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008098/0.1443, allocations: 0.7939 MB / 367.2 MB, free: 5.309 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.264e-06/0.1443, allocations: 0 / 367.2 MB, free: 5.309 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.866e-06/0.1443, allocations: 0 / 367.2 MB, free: 5.309 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.285e-05/0.1443, allocations: 0 / 367.2 MB, free: 5.309 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.002904/0.1472, allocations: 1.007 MB / 368.2 MB, free: 4.242 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.418e-05/0.1473, allocations: 8.031 kB / 368.2 MB, free: 4.234 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003022/0.1476, allocations: 76.17 kB / 368.3 MB, free: 4.16 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006201/0.1482, allocations: 414 kB / 368.7 MB, free: 3.719 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.738e-05/0.1483, allocations: 33.38 kB / 368.7 MB, free: 3.684 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.491e-05/0.1484, allocations: 36.38 kB / 368.8 MB, free: 3.648 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001613/0.15, allocations: 0.6539 MB / 369.4 MB, free: 2.973 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.27e-05/0.1501, allocations: 0 / 369.4 MB, free: 2.973 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.504e-05/0.1501, allocations: 16 kB / 369.5 MB, free: 2.957 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.564e-05/0.1501, allocations: 15.88 kB / 369.5 MB, free: 2.941 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002078/0.1522, allocations: 0.7338 MB / 370.2 MB, free: 2.203 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3547/0.5069, allocations: 2.228 MB / 372.4 MB, free: 19 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005397/0.5124, allocations: 1.023 MB / 373.5 MB, free: 18.97 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001517/0.514, allocations: 454.3 kB / 373.9 MB, free: 18.96 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.44e-05/0.5141, allocations: 5.812 kB / 373.9 MB, free: 18.96 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001707/0.5158, allocations: 483.6 kB / 374.4 MB, free: 18.89 MB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 4.309e-06/0.5158, allocations: 0 / 374.4 MB, free: 18.89 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.01677/0.5326, allocations: 2.813 MB / 377.2 MB, free: 18.63 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.762e-05/0.5328, allocations: 81.81 kB / 377.3 MB, free: 18.54 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008194/0.5336, allocations: 414.8 kB / 377.7 MB, free: 18.44 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.353e-05/0.5337, allocations: 35.81 kB / 377.7 MB, free: 18.41 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002938/0.534, allocations: 237.8 kB / 377.9 MB, free: 18.31 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001933/0.5342, allocations: 136.2 kB / 378.1 MB, free: 18.2 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001119/0.5343, allocations: 47.2 kB / 378.1 MB, free: 18.17 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001579/0.5345, allocations: 354.8 kB / 378.5 MB, free: 17.84 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001197/0.5357, allocations: 348 kB / 378.8 MB, free: 17.74 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001103/0.5368, allocations: 388.5 kB / 379.2 MB, free: 17.62 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002184/0.539, allocations: 0.6927 MB / 379.9 MB, free: 17.38 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.402e-06/0.539, allocations: 0 / 379.9 MB, free: 17.38 MB / 302.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.00449/0.5435, allocations: 1.141 MB / 381 MB, free: 17.03 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.274e-05/0.5436, allocations: 37.47 kB / 381.1 MB, free: 16.99 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.43e-05/0.5436, allocations: 1.438 kB / 381.1 MB, free: 16.99 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00187/0.5455, allocations: 477.4 kB / 381.5 MB, free: 16.88 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006099/0.5461, allocations: 109.5 kB / 381.6 MB, free: 16.87 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01032/0.5565, allocations: 3.712 MB / 385.3 MB, free: 14.65 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009767/0.5575, allocations: 125.4 kB / 385.5 MB, free: 14.62 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.891e-05/0.5576, allocations: 11.64 kB / 385.5 MB, free: 14.62 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.0003986/0.558, allocations: 174.2 kB / 385.6 MB, free: 14.46 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002018/0.5582, allocations: 49.75 kB / 385.7 MB, free: 14.44 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001716/0.5584, allocations: 62 kB / 385.8 MB, free: 14.4 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.034e-05/0.5584, allocations: 5 kB / 385.8 MB, free: 14.4 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.348e-06/0.5584, allocations: 3.938 kB / 385.8 MB, free: 14.4 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.408e-05/0.5584, allocations: 10.09 kB / 385.8 MB, free: 14.39 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001166/0.5596, allocations: 0.6146 MB / 386.4 MB, free: 14.02 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.663e-06/0.5596, allocations: 4.875 kB / 386.4 MB, free: 14.02 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005527/0.5602, allocations: 95.89 kB / 386.5 MB, free: 14.02 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001461/0.5617, allocations: 481.5 kB / 387 MB, free: 13.89 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.328e-05/0.5617, allocations: 11.25 kB / 387 MB, free: 13.89 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00954/0.5713, allocations: 3.701 MB / 390.7 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.1e-06/0.5713, allocations: 3.938 kB / 390.7 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006916/0.5782, allocations: 1.725 MB / 392.4 MB, free: 10.64 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004123/0.5787, allocations: 185.3 kB / 392.6 MB, free: 10.45 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001467/0.5788, allocations: 7.281 kB / 392.6 MB, free: 10.45 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007018/0.5796, allocations: 103.3 kB / 392.7 MB, free: 10.41 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002044/0.5798, allocations: 46.23 kB / 392.7 MB, free: 10.39 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.968e-05/0.5798, allocations: 11.66 kB / 392.7 MB, free: 10.38 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004602/0.5803, allocations: 297.5 kB / 393 MB, free: 10.2 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.5803, allocations: 0 / 393 MB, free: 10.2 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008906/0.5812, allocations: 174.7 kB / 393.2 MB, free: 10.18 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.0002587/0.5815, allocations: 110.6 kB / 393.3 MB, free: 10.08 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.003073/0.5845, allocations: 1.084 MB / 394.4 MB, free: 9.496 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.33e-06/0.5846, allocations: 0 / 394.4 MB, free: 9.496 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001797/0.5864, allocations: 0.6542 MB / 395 MB, free: 9.133 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007131/0.5871, allocations: 76.84 kB / 395.1 MB, free: 9.094 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00377/0.5909, allocations: 1.573 MB / 396.7 MB, free: 7.586 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003727/0.5913, allocations: 0.8387 MB / 397.5 MB, free: 6.723 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002887/0.5916, allocations: 47.34 kB / 397.6 MB, free: 6.672 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001103/0.5917, allocations: 31.42 kB / 397.6 MB, free: 6.645 MB / 302.1 MB Notification: Performance of SimCode: time 2.054e-06/0.5917, allocations: 0 / 397.6 MB, free: 6.645 MB / 302.1 MB Notification: Performance of Templates: time 0.02196/0.6137, allocations: 12.8 MB / 410.4 MB, free: 9.941 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 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SimpleTriacCircuit/SimpleTriacCircuit.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches