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.000905/0.000905, allocations: 83.67 kB / 21.7 MB, free: 2.852 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.0009789/0.0009789, allocations: 160.2 kB / 24.99 MB, free: 9.289 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.9908/0.9908, allocations: 177 MB / 205.2 MB, free: 5.605 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.794e-06/1.794e-06, allocations: 0 / 273 MB, free: 1.762 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.504e-05/2.683e-05, allocations: 5.125 kB / 273 MB, free: 1.758 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.005352/0.005378, allocations: 4.034 MB / 277.1 MB, free: 13.7 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002188/0.007566, allocations: 1.048 MB / 278.1 MB, free: 12.64 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002403/0.009969, allocations: 11.94 kB / 278.1 MB, free: 12.63 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002811/0.01025, allocations: 87.14 kB / 278.2 MB, free: 12.54 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004463/0.0107, allocations: 194.3 kB / 278.4 MB, free: 12.35 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006901/0.01139, allocations: 243.5 kB / 278.6 MB, free: 12.11 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009054/0.01229, allocations: 0.8443 MB / 279.5 MB, free: 11.27 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002836/0.01258, allocations: 117.5 kB / 279.6 MB, free: 11.14 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000719/0.01329, allocations: 471 kB / 280 MB, free: 10.68 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004492/0.01374, allocations: 287.3 kB / 280.3 MB, free: 10.4 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001294/0.01387, allocations: 80 kB / 280.4 MB, free: 10.32 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000152/0.01403, allocations: 91.98 kB / 280.5 MB, free: 10.23 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001342/0.01416, allocations: 159.4 kB / 280.6 MB, free: 10.07 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002834/0.01444, allocations: 255.4 kB / 280.9 MB, free: 9.824 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006579/0.0151, allocations: 0.5374 MB / 281.4 MB, free: 9.285 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.399e-06/0.0151, allocations: 0 / 281.4 MB, free: 9.285 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.01511, allocations: 0 / 281.4 MB, free: 9.285 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.715e-06/0.01511, allocations: 3.938 kB / 281.4 MB, free: 9.281 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.00139/0.0165, allocations: 1.027 MB / 282.5 MB, free: 8.211 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.789e-05/0.01654, allocations: 11.98 kB / 282.5 MB, free: 8.199 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002071/0.01675, allocations: 100.6 kB / 282.6 MB, free: 8.102 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003962/0.01715, allocations: 354.5 kB / 282.9 MB, free: 7.727 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.535e-05/0.01718, allocations: 33.36 kB / 283 MB, free: 7.695 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.322e-05/0.01723, allocations: 36.38 kB / 283 MB, free: 7.66 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006745/0.01791, allocations: 489.3 kB / 283.5 MB, free: 7.141 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.122e-05/0.01792, allocations: 192 / 283.5 MB, free: 7.141 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.475e-05/0.01795, allocations: 16.38 kB / 283.5 MB, free: 7.125 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.159e-05/0.01797, allocations: 11.94 kB / 283.5 MB, free: 7.113 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003647/0.01833, allocations: 205.7 kB / 283.7 MB, free: 6.914 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001913/0.02024, allocations: 1.977 MB / 285.7 MB, free: 4.852 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001284/0.02153, allocations: 456.8 kB / 286.1 MB, free: 4.395 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002714/0.0218, allocations: 152.3 kB / 286.3 MB, free: 4.242 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.159e-05/0.02183, allocations: 12.31 kB / 286.3 MB, free: 4.23 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003564/0.02219, allocations: 255.8 kB / 286.5 MB, free: 3.953 MB / 266.7 MB Notification: Performance of pre-optimization done (n=40): time 2.284e-06/0.02219, allocations: 0 / 286.5 MB, free: 3.953 MB / 266.7 MB Notification: Performance of matching and sorting (n=40): time 0.005358/0.02755, allocations: 1.448 MB / 288 MB, free: 2.492 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.444e-05/0.0276, allocations: 89.11 kB / 288.1 MB, free: 2.387 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004202/0.02802, allocations: 406.7 kB / 288.5 MB, free: 1.969 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.798e-05/0.02807, allocations: 33.7 kB / 288.5 MB, free: 1.93 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001929/0.02826, allocations: 287.5 kB / 288.8 MB, free: 1.645 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000125/0.02839, allocations: 138.8 kB / 288.9 MB, free: 1.508 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001555/0.02854, allocations: 75.72 kB / 289 MB, free: 1.422 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001576/0.0287, allocations: 0.5274 MB / 289.5 MB, free: 0.8828 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002727/0.02897, allocations: 110.5 kB / 289.6 MB, free: 0.7695 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002952/0.02927, allocations: 190.4 kB / 289.8 MB, free: 0.5625 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004664/0.02974, allocations: 219.4 kB / 290 MB, free: 340 kB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.548e-06/0.02974, allocations: 3.938 kB / 290 MB, free: 336 kB / 266.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.1146/0.1443, allocations: 0.5283 MB / 290.5 MB, free: 27.85 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.929e-05/0.1444, allocations: 32.33 kB / 290.6 MB, free: 27.82 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.598e-06/0.1444, allocations: 1.781 kB / 290.6 MB, free: 27.82 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006456/0.145, allocations: 250.3 kB / 290.8 MB, free: 27.8 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002681/0.1453, allocations: 72.98 kB / 290.9 MB, free: 27.8 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003762/0.1491, allocations: 2.894 MB / 293.8 MB, free: 25.87 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000381/0.1494, allocations: 67.23 kB / 293.9 MB, free: 25.87 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.148e-05/0.1495, allocations: 15.09 kB / 293.9 MB, free: 25.87 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.0001531/0.1496, allocations: 181.3 kB / 294.1 MB, free: 25.71 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.021e-05/0.1497, allocations: 63.16 kB / 294.1 MB, free: 25.7 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.618e-05/0.1498, allocations: 55.69 kB / 294.2 MB, free: 25.7 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.36e-06/0.1498, allocations: 7.969 kB / 294.2 MB, free: 25.7 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.845e-06/0.1498, allocations: 1.25 kB / 294.2 MB, free: 25.7 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.933e-06/0.1498, allocations: 1.875 kB / 294.2 MB, free: 25.7 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003753/0.1502, allocations: 391.9 kB / 294.6 MB, free: 25.56 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/0.1502, allocations: 0 / 294.6 MB, free: 25.56 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000221/0.1504, allocations: 63.89 kB / 294.6 MB, free: 25.56 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005055/0.1509, allocations: 259.4 kB / 294.9 MB, free: 25.54 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.472e-05/0.1509, allocations: 12.3 kB / 294.9 MB, free: 25.54 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003488/0.1544, allocations: 2.887 MB / 297.8 MB, free: 23.54 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.1544, allocations: 3.938 kB / 297.8 MB, free: 23.54 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00197/0.1564, allocations: 0.7249 MB / 298.5 MB, free: 23.31 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001662/0.1566, allocations: 105.2 kB / 298.6 MB, free: 23.24 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.045e-05/0.1566, allocations: 6.953 kB / 298.6 MB, free: 23.24 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002192/0.1568, allocations: 53.72 kB / 298.7 MB, free: 23.23 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001345/0.157, allocations: 51.28 kB / 298.7 MB, free: 23.22 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.691e-05/0.157, allocations: 13.47 kB / 298.7 MB, free: 23.21 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002185/0.1572, allocations: 285 kB / 299 MB, free: 23.06 MB / 266.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.1572, allocations: 0 / 299 MB, free: 23.06 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005194/0.1577, allocations: 179.4 kB / 299.2 MB, free: 23.03 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.0001281/0.1578, allocations: 106.6 kB / 299.3 MB, free: 22.94 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0009557/0.1588, allocations: 0.6178 MB / 299.9 MB, free: 22.57 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.1588, allocations: 1.438 kB / 299.9 MB, free: 22.57 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005505/0.1594, allocations: 448.5 kB / 300.3 MB, free: 22.3 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003212/0.1597, allocations: 89.78 kB / 300.4 MB, free: 22.28 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001867/0.1615, allocations: 1.016 MB / 301.4 MB, free: 21.71 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.016e-05/0.1616, allocations: 119.2 kB / 301.6 MB, free: 21.64 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001428/0.1618, allocations: 40.95 kB / 301.6 MB, free: 21.63 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.059e-05/0.1619, allocations: 35.28 kB / 301.6 MB, free: 21.62 MB / 266.7 MB Notification: Performance of SimCode: time 1.503e-06/0.1619, allocations: 3.828 kB / 301.6 MB, free: 21.62 MB / 266.7 MB Notification: Performance of Templates: time 0.01395/0.1758, allocations: 13.97 MB / 315.6 MB, free: 11.42 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 -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.887542648939416]