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.0006423/0.0006423, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001001/0.001644, allocations: 449.8 kB / 10.44 MB, free: 252 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.001013/0.001013, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001061/0.002074, allocations: 479.5 kB / 11.82 MB, free: 2.344 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.9245/0.9245, allocations: 177.2 MB / 189.8 MB, free: 5.254 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09275/1.017, allocations: 53.66 MB / 243.4 MB, free: 15.51 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.212e-06/1.212e-06, allocations: 0 / 244.7 MB, free: 14.21 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.373e-05/1.494e-05, allocations: 2.312 kB / 244.7 MB, free: 14.21 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.003393/0.003408, allocations: 4.06 MB / 248.8 MB, free: 10.12 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001628/0.005036, allocations: 1.082 MB / 249.9 MB, free: 9.031 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001977/0.005234, allocations: 11.94 kB / 249.9 MB, free: 9.02 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001309/0.005364, allocations: 87.08 kB / 250 MB, free: 8.934 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002453/0.00561, allocations: 206.2 kB / 250.2 MB, free: 8.73 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003603/0.00597, allocations: 231.6 kB / 250.4 MB, free: 8.504 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000566/0.006536, allocations: 0.8443 MB / 251.2 MB, free: 7.656 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001683/0.006704, allocations: 122.1 kB / 251.4 MB, free: 7.535 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005719/0.007276, allocations: 0.5407 MB / 251.9 MB, free: 6.996 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002657/0.007542, allocations: 283.2 kB / 252.2 MB, free: 6.719 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 7.22e-05/0.007614, allocations: 80 kB / 252.3 MB, free: 6.641 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001091/0.007723, allocations: 80 kB / 252.3 MB, free: 6.562 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 7.573e-05/0.007799, allocations: 111.7 kB / 252.4 MB, free: 6.453 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001398/0.007939, allocations: 191.7 kB / 252.6 MB, free: 6.266 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000369/0.008308, allocations: 482.4 kB / 253.1 MB, free: 5.793 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.817e-06/0.008317, allocations: 4 kB / 253.1 MB, free: 5.789 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.51e-07/0.008318, allocations: 0 / 253.1 MB, free: 5.789 MB / 250.7 MB Notification: Performance of Transformations before backend: time 9.658e-06/0.008327, allocations: 0 / 253.1 MB, free: 5.789 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.001121/0.009448, allocations: 0.9918 MB / 254.1 MB, free: 4.766 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.409e-05/0.009473, allocations: 8.031 kB / 254.1 MB, free: 4.758 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001681/0.009641, allocations: 158 kB / 254.3 MB, free: 4.586 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002778/0.009918, allocations: 271.8 kB / 254.5 MB, free: 4.293 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.577e-05/0.009944, allocations: 29.38 kB / 254.6 MB, free: 4.266 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.968e-05/0.009994, allocations: 36.38 kB / 254.6 MB, free: 4.23 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004734/0.01047, allocations: 440.3 kB / 255 MB, free: 3.762 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.077e-06/0.01048, allocations: 192 / 255 MB, free: 3.762 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.909e-05/0.01051, allocations: 16.38 kB / 255 MB, free: 3.746 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.436e-06/0.01051, allocations: 11.94 kB / 255 MB, free: 3.734 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000203/0.01072, allocations: 134.9 kB / 255.2 MB, free: 3.605 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001372/0.01209, allocations: 1.375 MB / 256.5 MB, free: 2.164 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007548/0.01284, allocations: 347.4 kB / 256.9 MB, free: 1.816 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001572/0.013, allocations: 117.5 kB / 257 MB, free: 1.699 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.925e-05/0.01303, allocations: 16.33 kB / 257 MB, free: 1.684 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002411/0.01327, allocations: 227.2 kB / 257.2 MB, free: 1.441 MB / 250.7 MB Notification: Performance of pre-optimization done (n=40): time 1.293e-06/0.01327, allocations: 0 / 257.2 MB, free: 1.441 MB / 250.7 MB Notification: Performance of matching and sorting (n=40): time 0.002955/0.01623, allocations: 1.075 MB / 258.3 MB, free: 364 kB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.892e-05/0.01626, allocations: 59.41 kB / 258.4 MB, free: 292 kB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002055/0.01646, allocations: 335.4 kB / 258.7 MB, free: 15.95 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.715e-05/0.0165, allocations: 29.7 kB / 258.7 MB, free: 15.91 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001094/0.01661, allocations: 205.6 kB / 258.9 MB, free: 15.71 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001054/0.01671, allocations: 134.8 kB / 259.1 MB, free: 15.57 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001239/0.01684, allocations: 74.02 kB / 259.1 MB, free: 15.49 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.458e-05/0.01692, allocations: 362.7 kB / 259.5 MB, free: 15.13 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000116/0.01704, allocations: 78.55 kB / 259.6 MB, free: 15.04 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001779/0.01722, allocations: 146 kB / 259.7 MB, free: 14.88 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003075/0.01752, allocations: 197.4 kB / 259.9 MB, free: 14.68 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.925e-06/0.01753, allocations: 0 / 259.9 MB, free: 14.68 MB / 266.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.000911/0.01844, allocations: 396.3 kB / 260.3 MB, free: 14.27 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.004e-05/0.01848, allocations: 33.69 kB / 260.3 MB, free: 14.23 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.353e-06/0.01849, allocations: 4 kB / 260.3 MB, free: 14.23 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005327/0.01902, allocations: 200.6 kB / 260.5 MB, free: 14.03 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003152/0.01933, allocations: 91.88 kB / 260.6 MB, free: 13.94 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002764/0.0221, allocations: 2.028 MB / 262.6 MB, free: 11.82 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002209/0.02232, allocations: 67.88 kB / 262.7 MB, free: 11.76 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.088e-05/0.02234, allocations: 11.98 kB / 262.7 MB, free: 11.75 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.0001166/0.02246, allocations: 133.8 kB / 262.8 MB, free: 11.61 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.46e-05/0.02251, allocations: 39.97 kB / 262.9 MB, free: 11.57 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.595e-05/0.02258, allocations: 56.41 kB / 262.9 MB, free: 11.51 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.186e-06/0.02258, allocations: 4 kB / 262.9 MB, free: 11.51 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.02258, allocations: 7.938 kB / 263 MB, free: 11.5 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.028e-06/0.02259, allocations: 0 / 263 MB, free: 11.5 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002799/0.02287, allocations: 294 kB / 263.2 MB, free: 11.2 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.02287, allocations: 0 / 263.2 MB, free: 11.2 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001987/0.02307, allocations: 79.88 kB / 263.3 MB, free: 11.12 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001023/0.02317, allocations: 55.58 kB / 263.4 MB, free: 11.06 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003337/0.0235, allocations: 200.7 kB / 263.6 MB, free: 10.86 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.212e-05/0.02353, allocations: 8 kB / 263.6 MB, free: 10.86 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002458/0.02599, allocations: 2.026 MB / 265.6 MB, free: 8.754 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.02599, allocations: 4 kB / 265.6 MB, free: 8.75 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001041/0.02703, allocations: 0.5179 MB / 266.1 MB, free: 8.211 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4e-05/0.02707, allocations: 8 kB / 266.1 MB, free: 8.203 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001678/0.02724, allocations: 51.89 kB / 266.2 MB, free: 8.152 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.316e-05/0.02732, allocations: 59.89 kB / 266.2 MB, free: 8.094 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.752e-05/0.02734, allocations: 4 kB / 266.2 MB, free: 8.09 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000103/0.02744, allocations: 148.7 kB / 266.4 MB, free: 7.941 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02744, allocations: 0 / 266.4 MB, free: 7.941 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003315/0.02777, allocations: 172 kB / 266.6 MB, free: 7.773 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.0001143/0.02789, allocations: 88.36 kB / 266.6 MB, free: 7.676 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0006121/0.0285, allocations: 0.4958 MB / 267.1 MB, free: 7.148 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.908e-05/0.02852, allocations: 15.92 kB / 267.2 MB, free: 7.133 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003807/0.0289, allocations: 379.2 kB / 267.5 MB, free: 6.746 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004526/0.02935, allocations: 0.8796 MB / 268.4 MB, free: 5.699 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00332/0.03267, allocations: 0.9821 MB / 269.4 MB, free: 4.688 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.777e-05/0.03275, allocations: 121.8 kB / 269.5 MB, free: 4.551 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001254/0.03287, allocations: 43.28 kB / 269.5 MB, free: 4.508 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000183/0.03306, allocations: 127.3 kB / 269.7 MB, free: 4.383 MB / 266.7 MB Notification: Performance of SimCode: time 8.81e-07/0.03306, allocations: 0 / 269.7 MB, free: 4.383 MB / 266.7 MB Notification: Performance of Templates: time 0.01369/0.04674, allocations: 13.22 MB / 282.9 MB, free: 7.305 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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.2667706282809377]