Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001008/0.001008, allocations: 75.59 kB / 21.18 MB, free: 3.391 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00108/0.00108, allocations: 161.4 kB / 24.56 MB, free: 20 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.066/1.066, allocations: 177.1 MB / 205 MB, free: 5.285 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.252e-06/1.252e-06, allocations: 0 / 273 MB, free: 1.363 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.684e-05/1.809e-05, allocations: 6.312 kB / 273 MB, free: 1.355 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.003866/0.003884, allocations: 4.046 MB / 277 MB, free: 13.29 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001735/0.005619, allocations: 1.04 MB / 278.1 MB, free: 12.24 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001881/0.005807, allocations: 8 kB / 278.1 MB, free: 12.23 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002155/0.006023, allocations: 95.06 kB / 278.2 MB, free: 12.14 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002641/0.006287, allocations: 198.3 kB / 278.4 MB, free: 11.94 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005268/0.006814, allocations: 227.6 kB / 278.6 MB, free: 11.72 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006637/0.007477, allocations: 0.8481 MB / 279.4 MB, free: 10.87 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002212/0.007699, allocations: 117.5 kB / 279.6 MB, free: 10.74 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005122/0.008211, allocations: 479 kB / 280 MB, free: 10.27 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002924/0.008503, allocations: 283.3 kB / 280.3 MB, free: 9.996 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 8.377e-05/0.008587, allocations: 88 kB / 280.4 MB, free: 9.91 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001124/0.008699, allocations: 84 kB / 280.5 MB, free: 9.828 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 9.306e-05/0.008793, allocations: 167.4 kB / 280.6 MB, free: 9.664 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001807/0.008973, allocations: 247.4 kB / 280.9 MB, free: 9.422 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005064/0.00948, allocations: 0.5335 MB / 281.4 MB, free: 8.887 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.835e-06/0.009482, allocations: 3.938 kB / 281.4 MB, free: 8.883 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.42e-07/0.009483, allocations: 0 / 281.4 MB, free: 8.883 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.744e-06/0.009491, allocations: 0 / 281.4 MB, free: 8.883 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.001502/0.01099, allocations: 1.023 MB / 282.4 MB, free: 7.816 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.819e-05/0.01104, allocations: 8.031 kB / 282.4 MB, free: 7.809 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002216/0.01126, allocations: 100.5 kB / 282.5 MB, free: 7.711 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004227/0.01169, allocations: 358.5 kB / 282.9 MB, free: 7.332 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.48e-05/0.01172, allocations: 33.38 kB / 282.9 MB, free: 7.301 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.106e-05/0.01178, allocations: 36.38 kB / 283 MB, free: 7.266 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006788/0.01246, allocations: 481.3 kB / 283.4 MB, free: 6.758 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.165e-05/0.01247, allocations: 12.17 kB / 283.4 MB, free: 6.746 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.482e-05/0.01251, allocations: 8.375 kB / 283.5 MB, free: 6.738 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.343e-05/0.01252, allocations: 15.94 kB / 283.5 MB, free: 6.723 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003683/0.01289, allocations: 197.8 kB / 283.7 MB, free: 6.527 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002026/0.01491, allocations: 1.984 MB / 285.6 MB, free: 4.457 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001275/0.01619, allocations: 445.1 kB / 286.1 MB, free: 4.012 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002568/0.01645, allocations: 164.2 kB / 286.2 MB, free: 3.848 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.185e-05/0.01649, allocations: 12.27 kB / 286.3 MB, free: 3.836 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003436/0.01683, allocations: 251.8 kB / 286.5 MB, free: 3.562 MB / 266.7 MB Notification: Performance of pre-optimization done (n=40): time 1.423e-06/0.01683, allocations: 4 kB / 286.5 MB, free: 3.559 MB / 266.7 MB Notification: Performance of matching and sorting (n=40): time 0.00504/0.02187, allocations: 1.444 MB / 288 MB, free: 2.102 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.833e-05/0.02192, allocations: 81.11 kB / 288 MB, free: 2.004 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002867/0.02221, allocations: 414.7 kB / 288.4 MB, free: 1.582 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.253e-05/0.02224, allocations: 33.7 kB / 288.5 MB, free: 1.543 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001349/0.02238, allocations: 287.5 kB / 288.7 MB, free: 1.258 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.26e-05/0.02246, allocations: 138.8 kB / 288.9 MB, free: 1.121 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001129/0.02257, allocations: 79.7 kB / 289 MB, free: 1.031 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001373/0.02271, allocations: 0.5235 MB / 289.5 MB, free: 0.4961 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001843/0.02289, allocations: 110.5 kB / 289.6 MB, free: 392 kB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002059/0.0231, allocations: 182.5 kB / 289.8 MB, free: 188 kB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1453/0.1684, allocations: 218.7 kB / 290 MB, free: 25.72 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.165e-06/0.1684, allocations: 3.75 kB / 290 MB, free: 25.72 MB / 266.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001458/0.1698, allocations: 0.5296 MB / 290.5 MB, free: 25.6 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.725e-05/0.1699, allocations: 34.02 kB / 290.6 MB, free: 25.57 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.736e-06/0.1699, allocations: 5.047 kB / 290.6 MB, free: 25.57 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006622/0.1705, allocations: 253.3 kB / 290.8 MB, free: 25.56 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002526/0.1708, allocations: 76.8 kB / 290.9 MB, free: 25.56 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00361/0.1744, allocations: 2.899 MB / 293.8 MB, free: 23.62 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002935/0.1747, allocations: 63.14 kB / 293.8 MB, free: 23.62 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.191e-05/0.1747, allocations: 14.84 kB / 293.9 MB, free: 23.62 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.0001633/0.1749, allocations: 180.7 kB / 294 MB, free: 23.45 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.509e-05/0.175, allocations: 62.22 kB / 294.1 MB, free: 23.44 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.923e-05/0.175, allocations: 59.06 kB / 294.1 MB, free: 23.43 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.328e-06/0.175, allocations: 4.5 kB / 294.2 MB, free: 23.43 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.359e-06/0.175, allocations: 0 / 294.2 MB, free: 23.43 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.294e-06/0.175, allocations: 3.578 kB / 294.2 MB, free: 23.43 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004432/0.1755, allocations: 388.4 kB / 294.5 MB, free: 23.28 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.547e-06/0.1755, allocations: 3.375 kB / 294.5 MB, free: 23.28 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002113/0.1757, allocations: 70.78 kB / 294.6 MB, free: 23.28 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005508/0.1763, allocations: 247.3 kB / 294.8 MB, free: 23.27 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.563e-05/0.1763, allocations: 12.89 kB / 294.9 MB, free: 23.27 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003395/0.1797, allocations: 2.903 MB / 297.8 MB, free: 21.27 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.1797, allocations: 0.7031 kB / 297.8 MB, free: 21.27 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002006/0.1817, allocations: 0.7159 MB / 298.5 MB, free: 21.14 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001665/0.1819, allocations: 103.2 kB / 298.6 MB, free: 21.12 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.213e-05/0.1819, allocations: 9.703 kB / 298.6 MB, free: 21.12 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002201/0.1821, allocations: 53.09 kB / 298.6 MB, free: 21.11 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001407/0.1823, allocations: 53.06 kB / 298.7 MB, free: 21.11 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.064e-05/0.1823, allocations: 13.92 kB / 298.7 MB, free: 21.11 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002571/0.1826, allocations: 285.8 kB / 299 MB, free: 20.98 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1826, allocations: 0 / 299 MB, free: 20.98 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005044/0.1831, allocations: 178.2 kB / 299.2 MB, free: 20.97 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.000143/0.1832, allocations: 113.8 kB / 299.3 MB, free: 20.88 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.00104/0.1842, allocations: 0.6151 MB / 299.9 MB, free: 20.57 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.537e-06/0.1842, allocations: 1.156 kB / 299.9 MB, free: 20.57 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006006/0.1848, allocations: 435.2 kB / 300.3 MB, free: 20.32 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003786/0.1852, allocations: 92.05 kB / 300.4 MB, free: 20.29 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002133/0.1874, allocations: 1.021 MB / 301.4 MB, free: 19.73 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001174/0.1875, allocations: 119.5 kB / 301.5 MB, free: 19.66 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001483/0.1876, allocations: 44.33 kB / 301.6 MB, free: 19.64 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.619e-05/0.1877, allocations: 31.34 kB / 301.6 MB, free: 19.63 MB / 266.7 MB Notification: Performance of SimCode: time 1.512e-06/0.1877, allocations: 0 / 301.6 MB, free: 19.63 MB / 266.7 MB Notification: Performance of Templates: time 0.01484/0.2026, allocations: 13.98 MB / 315.6 MB, free: 9.914 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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: 4.048152735922486]