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.001651/0.001651, allocations: 106.1 kB / 19.8 MB, free: 2.5 MB / 14.72 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.001811/0.001811, allocations: 216.7 kB / 22.99 MB, free: 5.574 MB / 14.72 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 1.452/1.452, allocations: 230.2 MB / 256.2 MB, free: 8.547 MB / 206.1 MB " [Timeout remaining time 178] 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 0.002862/0.002862, allocations: 63.89 kB / 376.5 MB, free: 3.582 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2854/0.2882, allocations: 53.32 MB / 429.8 MB, free: 7.516 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.006034/0.2943, allocations: 4.124 MB / 433.9 MB, free: 3.367 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002161/0.2964, allocations: 1.071 MB / 435 MB, free: 2.289 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002781/0.2967, allocations: 12 kB / 435 MB, free: 2.277 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002624/0.297, allocations: 87.14 kB / 435.1 MB, free: 2.191 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004037/0.2974, allocations: 190.4 kB / 435.3 MB, free: 2.004 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005475/0.2979, allocations: 231.7 kB / 435.5 MB, free: 1.777 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009389/0.2989, allocations: 0.8173 MB / 436.3 MB, free: 0.957 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000272/0.2991, allocations: 128.6 kB / 436.5 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004612/0.2996, allocations: 318.9 kB / 436.8 MB, free: 0.5156 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004718/0.3001, allocations: 366.5 kB / 437.1 MB, free: 160 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001127/0.3002, allocations: 84 kB / 437.2 MB, free: 76 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001806/0.3004, allocations: 88.05 kB / 437.3 MB, free: 15.98 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001502/0.3005, allocations: 163.4 kB / 437.5 MB, free: 15.83 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000343/0.3009, allocations: 338.5 kB / 437.8 MB, free: 15.5 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009533/0.3018, allocations: 0.854 MB / 438.6 MB, free: 14.64 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.622e-06/0.3018, allocations: 0 / 438.6 MB, free: 14.64 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.3018, allocations: 0 / 438.6 MB, free: 14.64 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.163e-05/0.3018, allocations: 0 / 438.6 MB, free: 14.64 MB / 350.1 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.003151/0.305, allocations: 1.061 MB / 439.7 MB, free: 13.52 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.607e-05/0.305, allocations: 16.02 kB / 439.7 MB, free: 13.5 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002688/0.3053, allocations: 68.56 kB / 439.8 MB, free: 13.44 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000749/0.3061, allocations: 430.2 kB / 440.2 MB, free: 12.98 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.274e-05/0.3061, allocations: 29.38 kB / 440.2 MB, free: 12.95 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001083/0.3062, allocations: 36.38 kB / 440.3 MB, free: 12.91 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001585/0.3078, allocations: 0.5993 MB / 440.9 MB, free: 12.29 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.032e-05/0.3078, allocations: 7.938 kB / 440.9 MB, free: 12.29 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.837e-05/0.3079, allocations: 16 kB / 440.9 MB, free: 12.27 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.124e-05/0.3079, allocations: 8 kB / 440.9 MB, free: 12.26 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002045/0.3099, allocations: 0.6362 MB / 441.5 MB, free: 11.62 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004346/0.3143, allocations: 2.173 MB / 443.7 MB, free: 9.352 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00421/0.3185, allocations: 0.8237 MB / 444.5 MB, free: 8.52 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001158/0.3197, allocations: 380.6 kB / 444.9 MB, free: 8.148 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.489e-05/0.3197, allocations: 4.328 kB / 444.9 MB, free: 8.145 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00121/0.3209, allocations: 430.7 kB / 445.3 MB, free: 7.707 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 2.294e-06/0.3209, allocations: 0 / 445.3 MB, free: 7.707 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.01536/0.3363, allocations: 2.387 MB / 447.7 MB, free: 5.289 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001508/0.3364, allocations: 85.11 kB / 447.8 MB, free: 5.188 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006523/0.3371, allocations: 414 kB / 448.2 MB, free: 4.777 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.195e-05/0.3372, allocations: 33.7 kB / 448.2 MB, free: 4.738 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002113/0.3374, allocations: 236.9 kB / 448.5 MB, free: 4.5 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001555/0.3375, allocations: 142.8 kB / 448.6 MB, free: 4.359 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002132/0.3377, allocations: 70.06 kB / 448.7 MB, free: 4.281 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001842/0.3379, allocations: 358.7 kB / 449 MB, free: 3.922 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000967/0.3389, allocations: 296.6 kB / 449.3 MB, free: 3.633 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001088/0.34, allocations: 342.1 kB / 449.6 MB, free: 3.293 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001854/0.3418, allocations: 0.599 MB / 450.2 MB, free: 2.68 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-06/0.3418, allocations: 0 / 450.2 MB, free: 2.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.003859/0.3457, allocations: 0.9943 MB / 451.2 MB, free: 1.672 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.26e-05/0.3457, allocations: 33.7 kB / 451.3 MB, free: 1.633 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.785e-06/0.3458, allocations: 0 / 451.3 MB, free: 1.633 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001369/0.3471, allocations: 440.4 kB / 451.7 MB, free: 1.199 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004968/0.3476, allocations: 95.8 kB / 451.8 MB, free: 1.105 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009486/0.3571, allocations: 3.805 MB / 455.6 MB, free: 13.16 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008184/0.3579, allocations: 99.73 kB / 455.7 MB, free: 13.07 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.047e-05/0.358, allocations: 11.94 kB / 455.7 MB, free: 13.05 MB / 366.1 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.0003082/0.3583, allocations: 173.8 kB / 455.9 MB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.615e-05/0.3584, allocations: 55.66 kB / 455.9 MB, free: 12.82 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000137/0.3585, allocations: 60.53 kB / 456 MB, free: 12.76 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.285e-05/0.3585, allocations: 4 kB / 456 MB, free: 12.75 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.3585, allocations: 0 / 456 MB, free: 12.75 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.492e-06/0.3585, allocations: 3.984 kB / 456 MB, free: 12.75 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007939/0.3593, allocations: 0.6183 MB / 456.6 MB, free: 12.08 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.346e-06/0.3593, allocations: 0 / 456.6 MB, free: 12.08 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005255/0.3599, allocations: 87.84 kB / 456.7 MB, free: 12 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001254/0.3611, allocations: 439 kB / 457.1 MB, free: 11.57 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.651e-05/0.3612, allocations: 15.98 kB / 457.2 MB, free: 11.55 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009139/0.3703, allocations: 3.806 MB / 461 MB, free: 7.605 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.3703, allocations: 4 kB / 461 MB, free: 7.602 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006231/0.3765, allocations: 1.493 MB / 462.5 MB, free: 6.086 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003468/0.3769, allocations: 188.7 kB / 462.6 MB, free: 5.883 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.179e-05/0.377, allocations: 11.88 kB / 462.7 MB, free: 5.871 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000597/0.3776, allocations: 79.91 kB / 462.7 MB, free: 5.793 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001836/0.3778, allocations: 51.92 kB / 462.8 MB, free: 5.742 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.562e-05/0.3778, allocations: 8 kB / 462.8 MB, free: 5.734 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003913/0.3782, allocations: 299.1 kB / 463.1 MB, free: 5.449 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3782, allocations: 0 / 463.1 MB, free: 5.449 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007112/0.3789, allocations: 175.8 kB / 463.3 MB, free: 5.277 MB / 366.1 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.0002045/0.3791, allocations: 111.5 kB / 463.4 MB, free: 5.16 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002852/0.382, allocations: 0.9424 MB / 464.3 MB, free: 4.191 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.382, allocations: 0 / 464.3 MB, free: 4.191 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001687/0.3837, allocations: 0.5802 MB / 464.9 MB, free: 3.598 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005553/0.3842, allocations: 91.3 kB / 465 MB, free: 3.508 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003711/0.3879, allocations: 1.276 MB / 466.2 MB, free: 2.203 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000564/0.3885, allocations: 0.8433 MB / 467.1 MB, free: 1.332 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002422/0.3887, allocations: 51.38 kB / 467.1 MB, free: 1.277 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001194/0.3889, allocations: 31.44 kB / 467.2 MB, free: 1.246 MB / 366.1 MB Notification: Performance of SimCode: time 1.793e-06/0.3889, allocations: 3.938 kB / 467.2 MB, free: 1.242 MB / 366.1 MB Notification: Performance of Templates: time 0.02447/0.4133, allocations: 14.32 MB / 481.5 MB, free: 3.004 MB / 382.1 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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.789111273363233]