Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001003/0.001003, allocations: 83.89 kB / 21.19 MB, free: 3.387 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009608/0.0009608, allocations: 145.1 kB / 24.54 MB, free: 36 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9922/0.9922, allocations: 173.4 MB / 201.1 MB, free: 9.316 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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="mat",numberOfIntervals=2000,variableFilter="time|L.i|simpleTriac.thyristor.vControl|simpleTriac.thyristor1.vControl",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") translateModel(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,tolerance=1e-12,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|L.i|simpleTriac.thyristor.vControl|simpleTriac.thyristor1.vControl",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.114e-06/2.114e-06, allocations: 0 / 268 MB, free: 6.418 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.462e-05/2.673e-05, allocations: 2.312 kB / 268 MB, free: 6.414 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.003752/0.003779, allocations: 3.995 MB / 272 MB, free: 2.398 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001204/0.004982, allocations: 1.001 MB / 273 MB, free: 1.391 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001582/0.005141, allocations: 7.938 kB / 273 MB, free: 1.383 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001966/0.005337, allocations: 91.12 kB / 273.1 MB, free: 1.293 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002167/0.005554, allocations: 190.3 kB / 273.3 MB, free: 1.105 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003763/0.00593, allocations: 223.6 kB / 273.5 MB, free: 0.8867 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005493/0.00648, allocations: 0.8326 MB / 274.3 MB, free: 52 kB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002345/0.006714, allocations: 117.5 kB / 274.4 MB, free: 15.93 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003788/0.007093, allocations: 459 kB / 274.9 MB, free: 15.48 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002766/0.007369, allocations: 287.3 kB / 275.2 MB, free: 15.2 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 8.336e-05/0.007453, allocations: 80 kB / 275.3 MB, free: 15.12 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.375e-05/0.007526, allocations: 84 kB / 275.3 MB, free: 15.04 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 9.793e-05/0.007624, allocations: 167.4 kB / 275.5 MB, free: 14.88 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001868/0.007811, allocations: 231.5 kB / 275.7 MB, free: 14.65 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004723/0.008284, allocations: 0.5334 MB / 276.3 MB, free: 14.11 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.525e-06/0.008286, allocations: 0 / 276.3 MB, free: 14.11 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.162e-06/0.008287, allocations: 0 / 276.3 MB, free: 14.11 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.282e-06/0.008293, allocations: 3.938 kB / 276.3 MB, free: 14.11 MB / 266.7 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.001791/0.01008, allocations: 1.004 MB / 277.3 MB, free: 13.06 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.783e-05/0.01013, allocations: 8.922 kB / 277.3 MB, free: 13.05 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001836/0.01032, allocations: 92.56 kB / 277.4 MB, free: 12.96 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005768/0.01089, allocations: 354.5 kB / 277.7 MB, free: 12.59 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.723e-05/0.01094, allocations: 33.31 kB / 277.7 MB, free: 12.56 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.581e-05/0.01104, allocations: 44.36 kB / 277.8 MB, free: 12.52 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009543/0.01199, allocations: 481.3 kB / 278.3 MB, free: 12 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.53e-05/0.012, allocations: 192 / 278.3 MB, free: 12 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.366e-05/0.01206, allocations: 20.36 kB / 278.3 MB, free: 11.98 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.959e-05/0.01208, allocations: 15.92 kB / 278.3 MB, free: 11.97 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005895/0.01267, allocations: 197.8 kB / 278.5 MB, free: 11.78 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002976/0.01564, allocations: 1.957 MB / 280.4 MB, free: 9.727 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001885/0.01753, allocations: 452.3 kB / 280.9 MB, free: 9.27 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003755/0.0179, allocations: 167 kB / 281 MB, free: 9.105 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.732e-05/0.01795, allocations: 8.328 kB / 281.1 MB, free: 9.098 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004531/0.0184, allocations: 259.8 kB / 281.3 MB, free: 8.816 MB / 266.7 MB Notification: Performance of pre-optimization done (n=40): time 1.743e-06/0.01841, allocations: 0 / 281.3 MB, free: 8.816 MB / 266.7 MB Notification: Performance of matching and sorting (n=40): time 0.005972/0.02438, allocations: 1.41 MB / 282.7 MB, free: 7.395 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.387e-05/0.02443, allocations: 89.11 kB / 282.8 MB, free: 7.289 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002938/0.02473, allocations: 402.7 kB / 283.2 MB, free: 6.875 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.354e-05/0.02476, allocations: 29.7 kB / 283.2 MB, free: 6.84 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001488/0.02491, allocations: 287.5 kB / 283.5 MB, free: 6.555 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.414e-05/0.02499, allocations: 134.8 kB / 283.6 MB, free: 6.422 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001135/0.02511, allocations: 75.72 kB / 283.7 MB, free: 6.336 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001412/0.02525, allocations: 0.5235 MB / 284.2 MB, free: 5.801 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001798/0.02543, allocations: 110.5 kB / 284.3 MB, free: 5.688 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002091/0.02564, allocations: 190.3 kB / 284.5 MB, free: 5.477 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003163/0.02595, allocations: 223.6 kB / 284.7 MB, free: 5.242 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.426e-06/0.02596, allocations: 3.938 kB / 284.8 MB, free: 5.238 MB / 266.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001222/0.02718, allocations: 0.5264 MB / 285.3 MB, free: 4.691 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.262e-05/0.02722, allocations: 33.7 kB / 285.3 MB, free: 4.652 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.386e-06/0.02723, allocations: 4 kB / 285.3 MB, free: 4.648 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000733/0.02796, allocations: 246.7 kB / 285.6 MB, free: 4.406 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003031/0.02827, allocations: 67.95 kB / 285.6 MB, free: 4.34 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004508/0.03277, allocations: 2.868 MB / 288.5 MB, free: 1.352 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003228/0.0331, allocations: 67.67 kB / 288.6 MB, free: 1.285 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.724e-05/0.03313, allocations: 12 kB / 288.6 MB, free: 1.273 MB / 266.7 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.0001617/0.0333, allocations: 184.5 kB / 288.7 MB, free: 1.082 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.638e-05/0.03338, allocations: 59.66 kB / 288.8 MB, free: 1.023 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.885e-05/0.03346, allocations: 56.36 kB / 288.9 MB, free: 0.9688 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.947e-06/0.03346, allocations: 8 kB / 288.9 MB, free: 0.9609 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.855e-06/0.03347, allocations: 0 / 288.9 MB, free: 0.9609 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/0.03347, allocations: 0 / 288.9 MB, free: 0.9609 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004324/0.03391, allocations: 388.6 kB / 289.3 MB, free: 0.543 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.396e-06/0.03391, allocations: 0 / 289.3 MB, free: 0.543 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002596/0.03417, allocations: 67.89 kB / 289.3 MB, free: 488 kB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005807/0.03475, allocations: 241.4 kB / 289.6 MB, free: 244 kB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.808e-05/0.03479, allocations: 11.92 kB / 289.6 MB, free: 232 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1264/0.1612, allocations: 2.841 MB / 292.4 MB, free: 28.29 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.1612, allocations: 1.828 kB / 292.4 MB, free: 28.29 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001864/0.1631, allocations: 0.7033 MB / 293.1 MB, free: 28.2 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001775/0.1633, allocations: 109.3 kB / 293.2 MB, free: 28.18 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.461e-05/0.1633, allocations: 11.72 kB / 293.2 MB, free: 28.18 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002158/0.1635, allocations: 48.11 kB / 293.3 MB, free: 28.18 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001266/0.1636, allocations: 56.62 kB / 293.3 MB, free: 28.18 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.888e-05/0.1637, allocations: 13.12 kB / 293.3 MB, free: 28.18 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001922/0.1639, allocations: 282.5 kB / 293.6 MB, free: 28.04 MB / 266.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1639, allocations: 1.062 kB / 293.6 MB, free: 28.04 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004716/0.1643, allocations: 180.8 kB / 293.8 MB, free: 28.04 MB / 266.7 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.0001062/0.1644, allocations: 109.9 kB / 293.9 MB, free: 27.95 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0008353/0.1653, allocations: 0.6007 MB / 294.5 MB, free: 27.65 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.867e-06/0.1653, allocations: 0 / 294.5 MB, free: 27.65 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004898/0.1658, allocations: 431.1 kB / 294.9 MB, free: 27.44 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002972/0.1661, allocations: 96.7 kB / 295 MB, free: 27.44 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001722/0.1678, allocations: 0.9691 MB / 296 MB, free: 26.99 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.46e-05/0.1679, allocations: 118.7 kB / 296.1 MB, free: 26.92 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001377/0.168, allocations: 43.39 kB / 296.1 MB, free: 26.91 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.793e-05/0.1681, allocations: 34 kB / 296.2 MB, free: 26.9 MB / 266.7 MB Notification: Performance of SimCode: time 7.01e-07/0.1681, allocations: 0 / 296.2 MB, free: 26.9 MB / 266.7 MB Notification: Performance of Templates: time 0.01441/0.1825, allocations: 13.72 MB / 309.9 MB, free: 19.64 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.80429219128564]