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.0007537/0.0007537, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009966/0.00175, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 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.0007339/0.0007339, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008805/0.001614, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 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 0.8892/0.8892, allocations: 177.2 MB / 189.6 MB, free: 5.305 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09273/0.9819, allocations: 53.64 MB / 243.3 MB, free: 15.58 MB / 250.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.152e-06/1.152e-06, allocations: 0 / 244.5 MB, free: 14.3 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.237e-05/1.353e-05, allocations: 8.922 kB / 244.5 MB, free: 14.3 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.007305/0.007319, allocations: 4.049 MB / 248.6 MB, free: 10.22 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.004641/0.01196, allocations: 1.086 MB / 249.7 MB, free: 9.125 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002125/0.01217, allocations: 7.938 kB / 249.7 MB, free: 9.117 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001583/0.01233, allocations: 91.12 kB / 249.8 MB, free: 9.027 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002971/0.01263, allocations: 202.2 kB / 250 MB, free: 8.828 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003811/0.01301, allocations: 231.6 kB / 250.2 MB, free: 8.602 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000645/0.01365, allocations: 0.8404 MB / 251 MB, free: 7.758 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001893/0.01384, allocations: 122.1 kB / 251.2 MB, free: 7.633 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005862/0.01443, allocations: 0.5447 MB / 251.7 MB, free: 7.09 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003047/0.01473, allocations: 283.2 kB / 252 MB, free: 6.812 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 8.364e-05/0.01482, allocations: 76 kB / 252.1 MB, free: 6.738 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003162/0.01798, allocations: 84 kB / 252.1 MB, free: 6.656 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 9.762e-05/0.01808, allocations: 111.6 kB / 252.2 MB, free: 6.547 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001876/0.01827, allocations: 187.7 kB / 252.4 MB, free: 6.363 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004783/0.01874, allocations: 490.4 kB / 252.9 MB, free: 5.883 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.134e-05/0.01876, allocations: 0 / 252.9 MB, free: 5.883 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.032e-06/0.01876, allocations: 0 / 252.9 MB, free: 5.883 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.134e-05/0.01877, allocations: 0 / 252.9 MB, free: 5.883 MB / 250.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.001443/0.02021, allocations: 0.9957 MB / 253.9 MB, free: 4.855 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.006e-05/0.02024, allocations: 8.031 kB / 253.9 MB, free: 4.848 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002005/0.02044, allocations: 150 kB / 254.1 MB, free: 4.684 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003373/0.02381, allocations: 279.8 kB / 254.3 MB, free: 4.383 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.916e-05/0.02385, allocations: 29.38 kB / 254.4 MB, free: 4.355 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.832e-05/0.02391, allocations: 36.38 kB / 254.4 MB, free: 4.32 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006234/0.02453, allocations: 436.3 kB / 254.8 MB, free: 3.855 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.086e-05/0.02455, allocations: 4.188 kB / 254.8 MB, free: 3.852 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.177e-05/0.02458, allocations: 16.38 kB / 254.8 MB, free: 3.836 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.928e-06/0.02459, allocations: 11.94 kB / 254.9 MB, free: 3.824 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002624/0.02485, allocations: 134.8 kB / 255 MB, free: 3.695 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001741/0.02659, allocations: 1.375 MB / 256.4 MB, free: 2.254 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004029/0.03062, allocations: 344 kB / 256.7 MB, free: 1.91 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001975/0.03082, allocations: 121.5 kB / 256.8 MB, free: 1.789 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.103e-05/0.03085, allocations: 8.328 kB / 256.8 MB, free: 1.781 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002819/0.03113, allocations: 236.5 kB / 257.1 MB, free: 1.527 MB / 250.7 MB Notification: Performance of pre-optimization done (n=40): time 1.563e-06/0.03113, allocations: 0 / 257.1 MB, free: 1.527 MB / 250.7 MB Notification: Performance of matching and sorting (n=40): time 0.005774/0.03691, allocations: 1.063 MB / 258.1 MB, free: 464 kB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.845e-05/0.03694, allocations: 55.41 kB / 258.2 MB, free: 396 kB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003017/0.03725, allocations: 343.3 kB / 258.5 MB, free: 44 kB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 4.188e-05/0.03729, allocations: 33.7 kB / 258.5 MB, free: 4 kB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001381/0.03743, allocations: 197.7 kB / 258.7 MB, free: 15.8 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001109/0.03754, allocations: 130.8 kB / 258.9 MB, free: 15.68 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001455/0.03768, allocations: 78.02 kB / 258.9 MB, free: 15.59 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001259/0.03781, allocations: 358.7 kB / 259.3 MB, free: 15.23 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001688/0.03798, allocations: 78.55 kB / 259.4 MB, free: 15.15 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002029/0.03818, allocations: 150 kB / 259.5 MB, free: 14.99 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003314/0.03851, allocations: 195.8 kB / 259.7 MB, free: 14.79 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.03851, allocations: 0 / 259.7 MB, free: 14.79 MB / 266.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001/0.03951, allocations: 397 kB / 260.1 MB, free: 14.38 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.07e-05/0.03956, allocations: 36.52 kB / 260.1 MB, free: 14.34 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/0.03957, allocations: 0 / 260.1 MB, free: 14.34 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006368/0.04021, allocations: 211.7 kB / 260.3 MB, free: 14.13 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003515/0.04056, allocations: 82.62 kB / 260.4 MB, free: 14.05 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003506/0.04407, allocations: 2.043 MB / 262.5 MB, free: 11.92 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003389/0.0444, allocations: 67.88 kB / 262.5 MB, free: 11.85 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.457e-05/0.04444, allocations: 7.984 kB / 262.5 MB, free: 11.84 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.0001524/0.04459, allocations: 129.8 kB / 262.7 MB, free: 11.71 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.447e-05/0.04467, allocations: 43.95 kB / 262.7 MB, free: 11.66 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.184e-05/0.04476, allocations: 60.45 kB / 262.8 MB, free: 11.61 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.098e-06/0.04476, allocations: 4 kB / 262.8 MB, free: 11.6 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.878e-06/0.04477, allocations: 7.922 kB / 262.8 MB, free: 11.59 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.478e-06/0.04477, allocations: 0 / 262.8 MB, free: 11.59 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003947/0.04516, allocations: 294 kB / 263.1 MB, free: 11.29 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.564e-06/0.04517, allocations: 0 / 263.1 MB, free: 11.29 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003787/0.04555, allocations: 87.25 kB / 263.1 MB, free: 11.21 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001028/0.04565, allocations: 51.59 kB / 263.2 MB, free: 11.16 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003351/0.04598, allocations: 200.6 kB / 263.4 MB, free: 10.96 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.059e-05/0.046, allocations: 11.98 kB / 263.4 MB, free: 10.95 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001995/0.048, allocations: 2.024 MB / 265.4 MB, free: 8.844 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.41e-07/0.048, allocations: 0 / 265.4 MB, free: 8.844 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009848/0.04899, allocations: 0.5063 MB / 265.9 MB, free: 8.316 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.043e-05/0.04903, allocations: 12 kB / 265.9 MB, free: 8.305 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001665/0.04919, allocations: 51.89 kB / 266 MB, free: 8.254 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.488e-05/0.04927, allocations: 51.91 kB / 266 MB, free: 8.203 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.791e-05/0.04929, allocations: 7.984 kB / 266 MB, free: 8.195 MB / 266.7 MB Notification: Performance of sorting global known variables: time 9.484e-05/0.04938, allocations: 148.7 kB / 266.2 MB, free: 8.047 MB / 266.7 MB Notification: Performance of sort global known variables: time 4.1e-08/0.04938, allocations: 0 / 266.2 MB, free: 8.047 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002947/0.04967, allocations: 168 kB / 266.4 MB, free: 7.883 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.0001096/0.04978, allocations: 92.36 kB / 266.4 MB, free: 7.781 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005784/0.05036, allocations: 0.4958 MB / 266.9 MB, free: 7.25 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.338e-05/0.05038, allocations: 15.88 kB / 267 MB, free: 7.234 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003646/0.05074, allocations: 363.1 kB / 267.3 MB, free: 6.863 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002115/0.05095, allocations: 129.6 kB / 267.4 MB, free: 6.738 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003136/0.05409, allocations: 0.9805 MB / 268.4 MB, free: 5.719 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.08e-05/0.05416, allocations: 121.8 kB / 268.5 MB, free: 5.582 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001207/0.05428, allocations: 43.3 kB / 268.6 MB, free: 5.539 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001765/0.05446, allocations: 127.3 kB / 268.7 MB, free: 5.414 MB / 266.7 MB Notification: Performance of SimCode: time 6.21e-07/0.05446, allocations: 3.938 kB / 268.7 MB, free: 5.41 MB / 266.7 MB Notification: Performance of Templates: time 0.01402/0.06848, allocations: 13.58 MB / 282.3 MB, free: 7.977 MB / 282.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 -ignoreHideResult -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: 3.2256869468837976]