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.0009249/0.0009249, allocations: 80.92 kB / 21.49 MB, free: 2.996 MB / 18.57 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.0009575/0.0009575, allocations: 169.9 kB / 24.91 MB, free: 8.723 MB / 18.57 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 1.01/1.01, allocations: 177.1 MB / 205.3 MB, free: 5.113 MB / 186.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.483e-06/1.483e-06, allocations: 0 / 273.5 MB, free: 1.117 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.094e-05/2.242e-05, allocations: 2.312 kB / 273.5 MB, free: 1.113 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.004102/0.004124, allocations: 4.036 MB / 277.5 MB, free: 13.05 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001897/0.006022, allocations: 1.079 MB / 278.6 MB, free: 11.97 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002192/0.006241, allocations: 7.938 kB / 278.6 MB, free: 11.96 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001889/0.00643, allocations: 87.14 kB / 278.7 MB, free: 11.88 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000302/0.006732, allocations: 198.3 kB / 278.9 MB, free: 11.68 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004563/0.007188, allocations: 239.5 kB / 279.1 MB, free: 11.45 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006625/0.007851, allocations: 0.852 MB / 280 MB, free: 10.59 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001819/0.008033, allocations: 122.1 kB / 280.1 MB, free: 10.46 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005275/0.00856, allocations: 479 kB / 280.6 MB, free: 9.992 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002827/0.008843, allocations: 275.3 kB / 280.9 MB, free: 9.723 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 7.794e-05/0.008921, allocations: 80 kB / 280.9 MB, free: 9.645 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001086/0.009029, allocations: 80 kB / 281 MB, free: 9.566 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 9.161e-05/0.009121, allocations: 167.4 kB / 281.2 MB, free: 9.402 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001561/0.009277, allocations: 231.4 kB / 281.4 MB, free: 9.176 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004685/0.009746, allocations: 0.5218 MB / 281.9 MB, free: 8.652 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.863e-06/0.009748, allocations: 0 / 281.9 MB, free: 8.652 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.21e-07/0.009748, allocations: 4 kB / 281.9 MB, free: 8.648 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.29e-06/0.009753, allocations: 0 / 281.9 MB, free: 8.648 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.001108/0.01086, allocations: 0.8827 MB / 282.8 MB, free: 7.734 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.665e-05/0.01089, allocations: 15.97 kB / 282.8 MB, free: 7.719 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001499/0.01104, allocations: 76.88 kB / 282.9 MB, free: 7.645 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003117/0.01135, allocations: 271.8 kB / 283.2 MB, free: 7.352 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.491e-05/0.01137, allocations: 29.38 kB / 283.2 MB, free: 7.324 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.55e-05/0.01142, allocations: 36.38 kB / 283.2 MB, free: 7.289 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005028/0.01192, allocations: 444.3 kB / 283.7 MB, free: 6.824 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.066e-05/0.01193, allocations: 192 / 283.7 MB, free: 6.824 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.633e-05/0.01196, allocations: 16.38 kB / 283.7 MB, free: 6.809 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.516e-06/0.01197, allocations: 15.94 kB / 283.7 MB, free: 6.793 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002135/0.01218, allocations: 130.9 kB / 283.8 MB, free: 6.664 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00155/0.01373, allocations: 1.363 MB / 285.2 MB, free: 5.242 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008115/0.01454, allocations: 344.2 kB / 285.5 MB, free: 4.898 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001639/0.01471, allocations: 125.5 kB / 285.6 MB, free: 4.773 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.541e-05/0.01473, allocations: 8.328 kB / 285.7 MB, free: 4.766 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002385/0.01497, allocations: 228.5 kB / 285.9 MB, free: 4.52 MB / 266.7 MB Notification: Performance of pre-optimization done (n=40): time 1.203e-06/0.01497, allocations: 0 / 285.9 MB, free: 4.52 MB / 266.7 MB Notification: Performance of matching and sorting (n=40): time 0.003024/0.018, allocations: 1.063 MB / 286.9 MB, free: 3.445 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.949e-05/0.01804, allocations: 81.11 kB / 287 MB, free: 3.348 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002007/0.01824, allocations: 339.3 kB / 287.3 MB, free: 3.004 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.027e-05/0.01827, allocations: 33.7 kB / 287.4 MB, free: 2.965 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.66e-05/0.01835, allocations: 197.8 kB / 287.6 MB, free: 2.77 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.428e-05/0.01843, allocations: 134.8 kB / 287.7 MB, free: 2.637 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.387e-05/0.01852, allocations: 73.97 kB / 287.8 MB, free: 2.559 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.913e-05/0.01862, allocations: 362.7 kB / 288.1 MB, free: 2.195 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000105/0.01873, allocations: 78.56 kB / 288.2 MB, free: 2.113 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001246/0.01885, allocations: 146 kB / 288.4 MB, free: 1.953 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002169/0.01907, allocations: 200.1 kB / 288.5 MB, free: 1.746 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/0.01907, allocations: 0 / 288.5 MB, free: 1.746 MB / 266.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0006293/0.0197, allocations: 385 kB / 288.9 MB, free: 1.348 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.429e-05/0.01973, allocations: 37.69 kB / 289 MB, free: 1.305 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.538e-06/0.01974, allocations: 0 / 289 MB, free: 1.305 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003996/0.02014, allocations: 208.6 kB / 289.2 MB, free: 1.098 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002101/0.02035, allocations: 79.88 kB / 289.2 MB, free: 1.02 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.131/0.1513, allocations: 2.022 MB / 291.3 MB, free: 22.19 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003385/0.1517, allocations: 68.23 kB / 291.3 MB, free: 22.19 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.704e-05/0.1517, allocations: 11.28 kB / 291.3 MB, free: 22.19 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.000153/0.1519, allocations: 132.8 kB / 291.5 MB, free: 22.07 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.747e-05/0.1519, allocations: 40.75 kB / 291.5 MB, free: 22.07 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.546e-05/0.152, allocations: 62.09 kB / 291.6 MB, free: 22.06 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.115e-06/0.152, allocations: 3.844 kB / 291.6 MB, free: 22.06 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.327e-06/0.152, allocations: 1.625 kB / 291.6 MB, free: 22.06 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.52e-06/0.152, allocations: 2.109 kB / 291.6 MB, free: 22.06 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003562/0.1524, allocations: 291.2 kB / 291.9 MB, free: 21.99 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.1524, allocations: 0 / 291.9 MB, free: 21.99 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002184/0.1526, allocations: 75.09 kB / 291.9 MB, free: 21.98 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003944/0.153, allocations: 208 kB / 292.1 MB, free: 21.98 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.826e-05/0.153, allocations: 15.89 kB / 292.2 MB, free: 21.98 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00207/0.1551, allocations: 2.023 MB / 294.2 MB, free: 20.71 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.786e-06/0.1551, allocations: 5.672 kB / 294.2 MB, free: 20.71 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001155/0.1562, allocations: 0.513 MB / 294.7 MB, free: 20.63 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001071/0.1563, allocations: 48.75 kB / 294.7 MB, free: 20.62 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.813e-05/0.1564, allocations: 12.2 kB / 294.8 MB, free: 20.62 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001757/0.1566, allocations: 45.39 kB / 294.8 MB, free: 20.62 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001096/0.1567, allocations: 54.62 kB / 294.9 MB, free: 20.62 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.049e-05/0.1567, allocations: 7.5 kB / 294.9 MB, free: 20.62 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001307/0.1568, allocations: 148.5 kB / 295 MB, free: 20.6 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1568, allocations: 2.609 kB / 295 MB, free: 20.6 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003947/0.1572, allocations: 172.9 kB / 295.2 MB, free: 20.59 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.0001086/0.1573, allocations: 91.06 kB / 295.3 MB, free: 20.52 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0006641/0.158, allocations: 0.5042 MB / 295.8 MB, free: 20.29 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.029e-06/0.158, allocations: 8.375 kB / 295.8 MB, free: 20.29 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004136/0.1584, allocations: 349.9 kB / 296.1 MB, free: 20.14 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002339/0.1586, allocations: 87.02 kB / 296.2 MB, free: 20.14 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001574/0.1602, allocations: 0.9732 MB / 297.2 MB, free: 19.7 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.051e-05/0.1603, allocations: 118.8 kB / 297.3 MB, free: 19.62 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001426/0.1604, allocations: 44.38 kB / 297.3 MB, free: 19.61 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001966/0.1606, allocations: 128.5 kB / 297.5 MB, free: 19.56 MB / 266.7 MB Notification: Performance of SimCode: time 8.01e-07/0.1606, allocations: 0 / 297.5 MB, free: 19.56 MB / 266.7 MB Notification: Performance of Templates: time 0.01525/0.1759, allocations: 13.32 MB / 310.8 MB, free: 12.8 MB / 266.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 -s gbode -gbm=radauIIA3 -emit_protected -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.4454820989631116]