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.0009998/0.0009998, allocations: 71.77 kB / 21.69 MB, free: 2.859 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.001122/0.001122, allocations: 166.7 kB / 24.99 MB, free: 8.793 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.014/1.014, allocations: 177.1 MB / 205.3 MB, free: 5.59 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.854e-06/1.854e-06, allocations: 0 / 273.1 MB, free: 1.793 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.741e-05/2.927e-05, allocations: 6.312 kB / 273.1 MB, free: 1.785 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.003907/0.003937, allocations: 4.029 MB / 277.1 MB, free: 13.74 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00176/0.005697, allocations: 1.048 MB / 278.1 MB, free: 12.68 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002547/0.005951, allocations: 8 kB / 278.2 MB, free: 12.68 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002154/0.006167, allocations: 87.14 kB / 278.2 MB, free: 12.59 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002901/0.006457, allocations: 202.2 kB / 278.4 MB, free: 12.39 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005117/0.006969, allocations: 235.5 kB / 278.7 MB, free: 12.16 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000609/0.007578, allocations: 0.8481 MB / 279.5 MB, free: 11.31 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002152/0.007793, allocations: 121.4 kB / 279.6 MB, free: 11.18 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004733/0.008266, allocations: 467.1 kB / 280.1 MB, free: 10.72 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000283/0.008549, allocations: 291.2 kB / 280.4 MB, free: 10.44 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 7.899e-05/0.008628, allocations: 84 kB / 280.5 MB, free: 10.36 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001041/0.008732, allocations: 84 kB / 280.5 MB, free: 10.27 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 9.039e-05/0.008822, allocations: 163.4 kB / 280.7 MB, free: 10.11 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001762/0.008999, allocations: 243.5 kB / 280.9 MB, free: 9.875 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004806/0.009479, allocations: 0.5413 MB / 281.5 MB, free: 9.332 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.798e-06/0.009483, allocations: 4 kB / 281.5 MB, free: 9.328 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.252e-06/0.009484, allocations: 0 / 281.5 MB, free: 9.328 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.264e-06/0.009492, allocations: 0 / 281.5 MB, free: 9.328 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.001397/0.01089, allocations: 1.019 MB / 282.5 MB, free: 8.266 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.023e-05/0.01093, allocations: 15.97 kB / 282.5 MB, free: 8.25 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002211/0.01115, allocations: 96.55 kB / 282.6 MB, free: 8.156 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000439/0.01159, allocations: 358.5 kB / 283 MB, free: 7.777 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.604e-05/0.01162, allocations: 37.3 kB / 283 MB, free: 7.742 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.104e-05/0.01169, allocations: 36.38 kB / 283 MB, free: 7.707 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007362/0.01242, allocations: 489.3 kB / 283.5 MB, free: 7.191 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.138e-05/0.01243, allocations: 4.188 kB / 283.5 MB, free: 7.188 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.473e-05/0.01247, allocations: 12.38 kB / 283.5 MB, free: 7.176 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.274e-05/0.01248, allocations: 15.94 kB / 283.5 MB, free: 7.16 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003882/0.01287, allocations: 201.8 kB / 283.7 MB, free: 6.961 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002159/0.01503, allocations: 1.969 MB / 285.7 MB, free: 4.906 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001386/0.01641, allocations: 453.1 kB / 286.2 MB, free: 4.453 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000268/0.01668, allocations: 163.6 kB / 286.3 MB, free: 4.293 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.481e-05/0.01672, allocations: 12.31 kB / 286.3 MB, free: 4.281 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003433/0.01706, allocations: 255.8 kB / 286.6 MB, free: 4.004 MB / 266.7 MB Notification: Performance of pre-optimization done (n=40): time 1.613e-06/0.01706, allocations: 0 / 286.6 MB, free: 4.004 MB / 266.7 MB Notification: Performance of matching and sorting (n=40): time 0.005088/0.02215, allocations: 1.452 MB / 288 MB, free: 2.539 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.181e-05/0.0222, allocations: 85.05 kB / 288.1 MB, free: 2.438 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003196/0.02252, allocations: 410.7 kB / 288.5 MB, free: 2.02 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.747e-05/0.02256, allocations: 29.7 kB / 288.5 MB, free: 1.984 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001482/0.02271, allocations: 287.5 kB / 288.8 MB, free: 1.699 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.204e-05/0.0228, allocations: 142.8 kB / 289 MB, free: 1.559 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001155/0.02291, allocations: 75.72 kB / 289 MB, free: 1.473 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001494/0.02306, allocations: 0.5235 MB / 289.6 MB, free: 0.9375 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002033/0.02327, allocations: 114.5 kB / 289.7 MB, free: 0.8203 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002139/0.02348, allocations: 182.5 kB / 289.8 MB, free: 0.6211 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003952/0.02388, allocations: 219.4 kB / 290.1 MB, free: 400 kB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.867e-06/0.02388, allocations: 3.938 kB / 290.1 MB, free: 396 kB / 266.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.119/0.1429, allocations: 0.5314 MB / 290.6 MB, free: 28.32 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.947e-05/0.1429, allocations: 33.12 kB / 290.6 MB, free: 28.29 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.067e-06/0.1429, allocations: 0.5312 kB / 290.6 MB, free: 28.29 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007254/0.1437, allocations: 250.3 kB / 290.9 MB, free: 28.28 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003184/0.144, allocations: 76.17 kB / 290.9 MB, free: 28.28 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004565/0.1486, allocations: 2.896 MB / 293.8 MB, free: 26.34 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003844/0.1489, allocations: 69.94 kB / 293.9 MB, free: 26.34 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.585e-05/0.149, allocations: 13.92 kB / 293.9 MB, free: 26.34 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.000165/0.1491, allocations: 179.9 kB / 294.1 MB, free: 26.18 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.603e-05/0.1492, allocations: 61.22 kB / 294.2 MB, free: 26.18 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.825e-05/0.1493, allocations: 54.25 kB / 294.2 MB, free: 26.17 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.78e-06/0.1493, allocations: 4.656 kB / 294.2 MB, free: 26.17 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.465e-06/0.1493, allocations: 0 / 294.2 MB, free: 26.17 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.593e-06/0.1493, allocations: 2.812 kB / 294.2 MB, free: 26.17 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004319/0.1498, allocations: 396.8 kB / 294.6 MB, free: 26.01 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.427e-06/0.1498, allocations: 0.7969 kB / 294.6 MB, free: 26.01 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002618/0.15, allocations: 65.08 kB / 294.7 MB, free: 26 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000643/0.1507, allocations: 255.2 kB / 294.9 MB, free: 25.96 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.379e-05/0.1507, allocations: 13.55 kB / 294.9 MB, free: 25.95 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004158/0.1549, allocations: 2.894 MB / 297.8 MB, free: 23.68 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.1549, allocations: 7.531 kB / 297.8 MB, free: 23.68 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002485/0.1574, allocations: 0.7146 MB / 298.6 MB, free: 23.45 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001974/0.1576, allocations: 106 kB / 298.7 MB, free: 23.39 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.375e-05/0.1576, allocations: 6.719 kB / 298.7 MB, free: 23.39 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002807/0.1579, allocations: 51.91 kB / 298.7 MB, free: 23.38 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001508/0.158, allocations: 54.2 kB / 298.8 MB, free: 23.36 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.385e-05/0.1581, allocations: 14.36 kB / 298.8 MB, free: 23.36 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002604/0.1583, allocations: 281.6 kB / 299.1 MB, free: 23.2 MB / 266.7 MB Notification: Performance of sort global known variables: time 1e-07/0.1583, allocations: 0 / 299.1 MB, free: 23.2 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006582/0.159, allocations: 180.7 kB / 299.2 MB, free: 23.18 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.0001598/0.1592, allocations: 109.8 kB / 299.3 MB, free: 23.09 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001215/0.1604, allocations: 0.6184 MB / 300 MB, free: 22.71 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.534e-06/0.1604, allocations: 0 / 300 MB, free: 22.71 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008491/0.1612, allocations: 452.8 kB / 300.4 MB, free: 22.44 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005094/0.1617, allocations: 91.83 kB / 300.5 MB, free: 22.42 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002754/0.1645, allocations: 1.014 MB / 301.5 MB, free: 21.87 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001436/0.1646, allocations: 120.6 kB / 301.6 MB, free: 21.79 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002403/0.1649, allocations: 39.81 kB / 301.7 MB, free: 21.78 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001266/0.165, allocations: 30.89 kB / 301.7 MB, free: 21.77 MB / 266.7 MB Notification: Performance of SimCode: time 2.104e-06/0.165, allocations: 0 / 301.7 MB, free: 21.77 MB / 266.7 MB Notification: Performance of Templates: time 0.01569/0.1807, allocations: 13.97 MB / 315.7 MB, free: 11.61 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 -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.9315326157957315]