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.001087/0.001087, allocations: 76.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001697/0.002784, allocations: 457.8 kB / 10.45 MB, free: 244 kB / 10.45 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.001059/0.001059, allocations: 162 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001395/0.002454, allocations: 475.6 kB / 11.82 MB, free: 2.348 MB / 13.93 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.946/0.946, allocations: 177.5 MB / 190 MB, free: 4.812 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08512/1.031, allocations: 53.87 MB / 243.9 MB, free: 14.87 MB / 250.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.583e-06/1.583e-06, allocations: 0 / 245.2 MB, free: 13.57 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.97e-05/2.128e-05, allocations: 2.312 kB / 245.2 MB, free: 13.57 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.008423/0.008445, allocations: 4.053 MB / 249.3 MB, free: 9.484 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001867/0.01031, allocations: 1.094 MB / 250.4 MB, free: 8.383 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002807/0.01059, allocations: 11.94 kB / 250.4 MB, free: 8.371 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001894/0.01078, allocations: 91.12 kB / 250.5 MB, free: 8.281 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002997/0.01108, allocations: 186.3 kB / 250.6 MB, free: 8.098 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004792/0.01156, allocations: 247.5 kB / 250.9 MB, free: 7.855 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006645/0.01223, allocations: 0.8365 MB / 251.7 MB, free: 7.016 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002012/0.01243, allocations: 122.1 kB / 251.8 MB, free: 6.895 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006306/0.01306, allocations: 0.5446 MB / 252.4 MB, free: 6.352 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003349/0.01641, allocations: 279.3 kB / 252.7 MB, free: 6.078 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 9.401e-05/0.0165, allocations: 79.94 kB / 252.7 MB, free: 6 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001493/0.01665, allocations: 91.98 kB / 252.8 MB, free: 5.91 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 9.163e-05/0.01674, allocations: 115.7 kB / 252.9 MB, free: 5.797 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001775/0.01692, allocations: 187.7 kB / 253.1 MB, free: 5.613 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005002/0.01742, allocations: 474.5 kB / 253.6 MB, free: 5.148 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.15e-05/0.01743, allocations: 0 / 253.6 MB, free: 5.148 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.362e-06/0.01743, allocations: 3.938 kB / 253.6 MB, free: 5.145 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.018e-05/0.01744, allocations: 0 / 253.6 MB, free: 5.145 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.001422/0.01886, allocations: 0.9996 MB / 254.6 MB, free: 4.113 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.987e-05/0.01889, allocations: 8.625 kB / 254.6 MB, free: 4.105 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002165/0.01911, allocations: 154 kB / 254.8 MB, free: 3.938 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00339/0.0225, allocations: 271.8 kB / 255 MB, free: 3.645 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.363e-05/0.02253, allocations: 29.38 kB / 255 MB, free: 3.617 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.007e-05/0.02259, allocations: 36.38 kB / 255.1 MB, free: 3.582 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006183/0.02321, allocations: 440.3 kB / 255.5 MB, free: 3.113 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.242e-05/0.02322, allocations: 192 / 255.5 MB, free: 3.113 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.516e-05/0.02326, allocations: 16.38 kB / 255.5 MB, free: 3.098 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.331e-05/0.02327, allocations: 11.94 kB / 255.5 MB, free: 3.086 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002581/0.02353, allocations: 138.9 kB / 255.7 MB, free: 2.953 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005048/0.02858, allocations: 1.375 MB / 257.1 MB, free: 1.508 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009798/0.02956, allocations: 355.3 kB / 257.4 MB, free: 1.156 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001932/0.02975, allocations: 125.5 kB / 257.5 MB, free: 1.031 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.401e-05/0.02979, allocations: 8.328 kB / 257.5 MB, free: 1.023 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002947/0.03008, allocations: 232.5 kB / 257.8 MB, free: 0.7734 MB / 250.7 MB Notification: Performance of pre-optimization done (n=40): time 1.633e-06/0.03008, allocations: 0 / 257.8 MB, free: 0.7734 MB / 250.7 MB Notification: Performance of matching and sorting (n=40): time 0.005992/0.03607, allocations: 1.059 MB / 258.8 MB, free: 15.7 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.837e-05/0.0361, allocations: 55.41 kB / 258.9 MB, free: 15.64 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001905/0.03629, allocations: 339.3 kB / 259.2 MB, free: 15.3 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.096e-05/0.03632, allocations: 33.7 kB / 259.2 MB, free: 15.26 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.078e-05/0.0364, allocations: 205.7 kB / 259.4 MB, free: 15.05 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.406e-05/0.03648, allocations: 134.8 kB / 259.6 MB, free: 14.92 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.902e-05/0.03657, allocations: 74.03 kB / 259.6 MB, free: 14.84 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.329e-05/0.03665, allocations: 358.7 kB / 260 MB, free: 14.48 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.568e-05/0.03675, allocations: 78.55 kB / 260.1 MB, free: 14.39 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001146/0.03686, allocations: 146 kB / 260.2 MB, free: 14.23 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001954/0.03706, allocations: 201.4 kB / 260.4 MB, free: 14.02 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.03706, allocations: 0 / 260.4 MB, free: 14.02 MB / 266.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0006141/0.03767, allocations: 388.3 kB / 260.8 MB, free: 13.62 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.81e-05/0.03771, allocations: 41.72 kB / 260.8 MB, free: 13.58 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.059e-06/0.03772, allocations: 0 / 260.8 MB, free: 13.58 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003752/0.03809, allocations: 212.6 kB / 261 MB, free: 13.37 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002075/0.0383, allocations: 83.81 kB / 261.1 MB, free: 13.29 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002153/0.04045, allocations: 2.019 MB / 263.1 MB, free: 11.18 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000205/0.04066, allocations: 71.88 kB / 263.2 MB, free: 11.11 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002611/0.04092, allocations: 15.98 kB / 263.2 MB, free: 11.1 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.000115/0.04103, allocations: 125.8 kB / 263.3 MB, free: 10.96 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.491e-05/0.04109, allocations: 47.95 kB / 263.4 MB, free: 10.92 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.324e-05/0.04114, allocations: 48.42 kB / 263.4 MB, free: 10.87 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/0.04114, allocations: 4 kB / 263.4 MB, free: 10.87 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.04115, allocations: 7.938 kB / 263.4 MB, free: 10.86 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.04115, allocations: 7.984 kB / 263.5 MB, free: 10.85 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002695/0.04142, allocations: 294 kB / 263.7 MB, free: 10.55 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.04142, allocations: 0 / 263.7 MB, free: 10.55 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001952/0.04162, allocations: 75.88 kB / 263.8 MB, free: 10.47 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.926e-05/0.04172, allocations: 51.58 kB / 263.9 MB, free: 10.42 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003264/0.04205, allocations: 204.6 kB / 264.1 MB, free: 10.22 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.054e-05/0.04207, allocations: 4 kB / 264.1 MB, free: 10.21 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00197/0.04404, allocations: 2.021 MB / 266.1 MB, free: 8.117 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.04404, allocations: 0 / 266.1 MB, free: 8.117 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001036/0.04507, allocations: 0.5218 MB / 266.6 MB, free: 7.574 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.149e-05/0.04512, allocations: 15.94 kB / 266.6 MB, free: 7.559 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001684/0.04528, allocations: 51.88 kB / 266.7 MB, free: 7.508 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.594e-05/0.04537, allocations: 51.91 kB / 266.7 MB, free: 7.457 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.6e-05/0.04539, allocations: 4 kB / 266.7 MB, free: 7.453 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001006/0.04549, allocations: 152.7 kB / 266.9 MB, free: 7.305 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.04549, allocations: 0 / 266.9 MB, free: 7.305 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003361/0.04582, allocations: 168 kB / 267 MB, free: 7.141 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.0001134/0.04594, allocations: 100.3 kB / 267.1 MB, free: 7.031 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0006037/0.04654, allocations: 0.4997 MB / 267.6 MB, free: 6.5 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.405e-05/0.04655, allocations: 11.94 kB / 267.7 MB, free: 6.488 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000376/0.04693, allocations: 375.1 kB / 268 MB, free: 6.105 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004549/0.04738, allocations: 0.8798 MB / 268.9 MB, free: 5.055 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003286/0.05067, allocations: 0.9868 MB / 269.9 MB, free: 4.043 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.635e-05/0.05075, allocations: 121.8 kB / 270 MB, free: 3.898 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001229/0.05087, allocations: 43.31 kB / 270.1 MB, free: 3.855 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001877/0.05106, allocations: 127.3 kB / 270.2 MB, free: 3.73 MB / 266.7 MB Notification: Performance of SimCode: time 1.152e-06/0.05106, allocations: 0 / 270.2 MB, free: 3.73 MB / 266.7 MB Notification: Performance of Templates: time 0.0143/0.06536, allocations: 13.21 MB / 283.4 MB, free: 6.621 MB / 282.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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.3948384411633015]