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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001271/0.001271, allocations: 88.86 kB / 21.5 MB, free: 2.988 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.004537/0.004537, allocations: 163.4 kB / 24.91 MB, free: 8.715 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9825/0.9825, allocations: 177 MB / 205.2 MB, free: 5.062 MB / 186.7 MB " [Timeout remaining time 179] 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=2000,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=2000,variableFilter="time|L.i|simpleTriac.thyristor.vControl|simpleTriac.thyristor1.vControl",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.472e-06/1.472e-06, allocations: 0 / 273.4 MB, free: 1.031 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.231e-05/1.379e-05, allocations: 5.266 kB / 273.4 MB, free: 1.027 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.007181/0.007194, allocations: 4.033 MB / 277.5 MB, free: 12.96 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004468/0.01166, allocations: 1.079 MB / 278.6 MB, free: 11.88 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001629/0.01182, allocations: 7.938 kB / 278.6 MB, free: 11.87 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001795/0.012, allocations: 87.14 kB / 278.6 MB, free: 11.79 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002791/0.01228, allocations: 202.2 kB / 278.8 MB, free: 11.59 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00039/0.01267, allocations: 231.6 kB / 279.1 MB, free: 11.36 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006275/0.0133, allocations: 0.852 MB / 279.9 MB, free: 10.5 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001841/0.01349, allocations: 118.1 kB / 280 MB, free: 10.38 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00354/0.01703, allocations: 483 kB / 280.5 MB, free: 9.906 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003175/0.01734, allocations: 283.3 kB / 280.8 MB, free: 9.629 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 8.374e-05/0.01743, allocations: 76 kB / 280.9 MB, free: 9.555 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001199/0.01755, allocations: 84 kB / 280.9 MB, free: 9.473 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 9.753e-05/0.01764, allocations: 159.4 kB / 281.1 MB, free: 9.316 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001831/0.01783, allocations: 235.4 kB / 281.3 MB, free: 9.086 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004662/0.01829, allocations: 0.5296 MB / 281.9 MB, free: 8.555 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.843e-06/0.0183, allocations: 0 / 281.9 MB, free: 8.555 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.11e-07/0.0183, allocations: 0 / 281.9 MB, free: 8.555 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.318e-06/0.0183, allocations: 4 kB / 281.9 MB, free: 8.551 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.004259/0.02256, allocations: 0.8788 MB / 282.7 MB, free: 7.641 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.11e-05/0.02259, allocations: 11.98 kB / 282.8 MB, free: 7.629 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001829/0.02277, allocations: 76.88 kB / 282.8 MB, free: 7.555 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003684/0.02314, allocations: 279.7 kB / 283.1 MB, free: 7.254 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.435e-05/0.02318, allocations: 33.36 kB / 283.1 MB, free: 7.223 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.682e-05/0.02323, allocations: 44.36 kB / 283.2 MB, free: 7.18 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006067/0.02384, allocations: 440.3 kB / 283.6 MB, free: 6.715 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.429e-05/0.02385, allocations: 4.172 kB / 283.6 MB, free: 6.711 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.159e-05/0.02389, allocations: 16.38 kB / 283.6 MB, free: 6.695 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.072e-05/0.0239, allocations: 11.94 kB / 283.6 MB, free: 6.684 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002615/0.02416, allocations: 130.8 kB / 283.8 MB, free: 6.555 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00476/0.02892, allocations: 1.367 MB / 285.1 MB, free: 5.129 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009067/0.02982, allocations: 340 kB / 285.5 MB, free: 4.789 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001515/0.02998, allocations: 121.5 kB / 285.6 MB, free: 4.668 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.465e-05/0.03, allocations: 4.328 kB / 285.6 MB, free: 4.664 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002804/0.03028, allocations: 236.4 kB / 285.8 MB, free: 4.41 MB / 266.7 MB Notification: Performance of pre-optimization done (n=40): time 2.425e-06/0.03028, allocations: 3.984 kB / 285.8 MB, free: 4.406 MB / 266.7 MB Notification: Performance of matching and sorting (n=40): time 0.004657/0.03494, allocations: 1.051 MB / 286.9 MB, free: 3.344 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.891e-05/0.03499, allocations: 89.09 kB / 287 MB, free: 3.238 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002977/0.03529, allocations: 347.2 kB / 287.3 MB, free: 2.887 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.158e-05/0.03533, allocations: 37.7 kB / 287.3 MB, free: 2.844 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001162/0.03545, allocations: 197.8 kB / 287.5 MB, free: 2.648 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001036/0.03555, allocations: 130.8 kB / 287.7 MB, free: 2.52 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001369/0.03569, allocations: 74.02 kB / 287.7 MB, free: 2.441 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001284/0.03581, allocations: 358.7 kB / 288.1 MB, free: 2.082 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001571/0.03597, allocations: 86.55 kB / 288.2 MB, free: 1.992 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001887/0.03616, allocations: 146 kB / 288.3 MB, free: 1.832 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002783/0.03644, allocations: 184.2 kB / 288.5 MB, free: 1.641 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.03644, allocations: 0 / 288.5 MB, free: 1.641 MB / 266.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0006062/0.03705, allocations: 397 kB / 288.9 MB, free: 1.23 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.34e-05/0.03707, allocations: 29.7 kB / 288.9 MB, free: 1.195 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.707e-06/0.03707, allocations: 0 / 288.9 MB, free: 1.195 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003932/0.03747, allocations: 208.6 kB / 289.1 MB, free: 0.9883 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001946/0.03766, allocations: 79.88 kB / 289.2 MB, free: 0.9102 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1029/0.1406, allocations: 2.025 MB / 291.2 MB, free: 22.34 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003052/0.1409, allocations: 66.97 kB / 291.3 MB, free: 22.34 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.451e-05/0.1409, allocations: 10.84 kB / 291.3 MB, free: 22.34 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.0001258/0.141, allocations: 133.8 kB / 291.4 MB, free: 22.22 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.751e-05/0.1411, allocations: 44.67 kB / 291.5 MB, free: 22.22 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.767e-05/0.1411, allocations: 56.81 kB / 291.5 MB, free: 22.21 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.976e-06/0.1411, allocations: 4.25 kB / 291.5 MB, free: 22.21 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.284e-06/0.1411, allocations: 1.594 kB / 291.5 MB, free: 22.21 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.521e-06/0.1411, allocations: 2.109 kB / 291.5 MB, free: 22.21 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003025/0.1414, allocations: 290.7 kB / 291.8 MB, free: 22.14 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.1415, allocations: 2.109 kB / 291.8 MB, free: 22.14 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002008/0.1417, allocations: 76.14 kB / 291.9 MB, free: 22.13 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003612/0.142, allocations: 218.5 kB / 292.1 MB, free: 22.12 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.423e-05/0.142, allocations: 7.219 kB / 292.1 MB, free: 22.12 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001982/0.144, allocations: 2.02 MB / 294.1 MB, free: 20.86 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.774e-06/0.144, allocations: 5 kB / 294.1 MB, free: 20.86 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001122/0.1451, allocations: 0.5069 MB / 294.6 MB, free: 20.78 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001112/0.1453, allocations: 55.33 kB / 294.7 MB, free: 20.77 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.731e-05/0.1453, allocations: 8.547 kB / 294.7 MB, free: 20.77 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001719/0.1455, allocations: 47.67 kB / 294.7 MB, free: 20.77 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.285e-05/0.1456, allocations: 55.7 kB / 294.8 MB, free: 20.77 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.983e-05/0.1456, allocations: 7.172 kB / 294.8 MB, free: 20.77 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001171/0.1457, allocations: 147.4 kB / 295 MB, free: 20.75 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1457, allocations: 0.875 kB / 295 MB, free: 20.75 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003246/0.146, allocations: 175.6 kB / 295.1 MB, free: 20.74 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 9.57e-05/0.1461, allocations: 87.81 kB / 295.2 MB, free: 20.68 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000595/0.1467, allocations: 0.5045 MB / 295.7 MB, free: 20.44 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.97e-06/0.1467, allocations: 7.609 kB / 295.7 MB, free: 20.44 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003592/0.1471, allocations: 360.1 kB / 296.1 MB, free: 20.29 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00022/0.1473, allocations: 93.2 kB / 296.2 MB, free: 20.29 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001381/0.1487, allocations: 0.9518 MB / 297.1 MB, free: 19.86 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.04e-05/0.1487, allocations: 120.6 kB / 297.2 MB, free: 19.79 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001272/0.1489, allocations: 42.06 kB / 297.3 MB, free: 19.77 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001801/0.1491, allocations: 133.3 kB / 297.4 MB, free: 19.72 MB / 266.7 MB Notification: Performance of SimCode: time 5.01e-07/0.1491, allocations: 4 kB / 297.4 MB, free: 19.72 MB / 266.7 MB Notification: Performance of Templates: time 0.01224/0.1613, allocations: 13.32 MB / 310.7 MB, free: 12.79 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.makefile [Timeout 660] (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=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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: 3.443696718197316]