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.004153/0.004153, allocations: 81.97 kB / 22.21 MB, free: 2.289 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.001271/0.001271, allocations: 163.9 kB / 25.61 MB, free: 8.582 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 0.9734/0.9734, allocations: 177.2 MB / 206.1 MB, free: 4.473 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.834e-06/1.834e-06, allocations: 0 / 274.2 MB, free: 4.391 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.376e-05/2.56e-05, allocations: 7.125 kB / 274.2 MB, free: 4.383 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.004293/0.004319, allocations: 3.977 MB / 278.2 MB, free: 408 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001611/0.005929, allocations: 1.044 MB / 279.2 MB, free: 15.36 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001944/0.006124, allocations: 8.438 kB / 279.2 MB, free: 15.35 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002218/0.006346, allocations: 87.8 kB / 279.3 MB, free: 15.26 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002329/0.006579, allocations: 198.2 kB / 279.5 MB, free: 15.07 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000429/0.007008, allocations: 235.6 kB / 279.7 MB, free: 14.84 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006628/0.00767, allocations: 0.8481 MB / 280.6 MB, free: 13.98 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002266/0.007897, allocations: 117.5 kB / 280.7 MB, free: 13.86 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004679/0.008365, allocations: 471 kB / 281.2 MB, free: 13.4 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002762/0.008641, allocations: 283.3 kB / 281.4 MB, free: 13.12 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 7.69e-05/0.008718, allocations: 80 kB / 281.5 MB, free: 13.05 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001065/0.008824, allocations: 80 kB / 281.6 MB, free: 12.97 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 9.629e-05/0.008921, allocations: 163.4 kB / 281.8 MB, free: 12.81 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001719/0.009093, allocations: 239.3 kB / 282 MB, free: 12.57 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005244/0.009617, allocations: 0.5218 MB / 282.5 MB, free: 12.05 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.445e-06/0.009619, allocations: 4 kB / 282.5 MB, free: 12.05 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.403e-06/0.009621, allocations: 0 / 282.5 MB, free: 12.05 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.953e-06/0.009628, allocations: 0 / 282.5 MB, free: 12.05 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.001398/0.01103, allocations: 1.007 MB / 283.5 MB, free: 11 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.995e-05/0.01107, allocations: 12.03 kB / 283.5 MB, free: 10.98 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002056/0.01127, allocations: 104.5 kB / 283.6 MB, free: 10.88 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003711/0.01164, allocations: 354.5 kB / 284 MB, free: 10.51 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.339e-05/0.01168, allocations: 29.38 kB / 284 MB, free: 10.48 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.513e-05/0.01173, allocations: 40.31 kB / 284.1 MB, free: 10.44 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005736/0.0123, allocations: 445.3 kB / 284.5 MB, free: 9.969 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.135e-05/0.01232, allocations: 4.188 kB / 284.5 MB, free: 9.965 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.251e-05/0.01235, allocations: 16.38 kB / 284.5 MB, free: 9.949 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003542/0.0127, allocations: 11.94 kB / 284.5 MB, free: 9.938 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002417/0.01294, allocations: 158.7 kB / 284.7 MB, free: 9.781 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001784/0.01473, allocations: 1.895 MB / 286.6 MB, free: 7.801 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009378/0.01567, allocations: 380.2 kB / 286.9 MB, free: 7.418 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001876/0.01585, allocations: 134.3 kB / 287.1 MB, free: 7.285 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.214e-05/0.01589, allocations: 8.328 kB / 287.1 MB, free: 7.277 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003127/0.0162, allocations: 239.8 kB / 287.3 MB, free: 7.016 MB / 266.7 MB Notification: Performance of pre-optimization done (n=40): time 1.904e-06/0.0162, allocations: 0 / 287.3 MB, free: 7.016 MB / 266.7 MB Notification: Performance of matching and sorting (n=40): time 0.003619/0.01982, allocations: 1.147 MB / 288.5 MB, free: 5.855 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.126e-05/0.01986, allocations: 81.11 kB / 288.5 MB, free: 5.758 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002438/0.0201, allocations: 398.5 kB / 288.9 MB, free: 5.352 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.07e-05/0.02014, allocations: 33.7 kB / 289 MB, free: 5.312 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001393/0.02028, allocations: 287.5 kB / 289.2 MB, free: 5.027 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.77e-05/0.02037, allocations: 142.8 kB / 289.4 MB, free: 4.887 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001092/0.02048, allocations: 79.69 kB / 289.5 MB, free: 4.797 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001484/0.02063, allocations: 0.5234 MB / 290 MB, free: 4.262 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001291/0.02076, allocations: 98.52 kB / 290.1 MB, free: 4.16 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000153/0.02091, allocations: 162.5 kB / 290.2 MB, free: 3.98 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002364/0.02115, allocations: 195.3 kB / 290.4 MB, free: 3.773 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.02115, allocations: 0 / 290.4 MB, free: 3.773 MB / 266.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007893/0.02194, allocations: 474.9 kB / 290.9 MB, free: 3.289 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.655e-05/0.02198, allocations: 37.69 kB / 290.9 MB, free: 3.246 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.181e-06/0.02198, allocations: 4 kB / 290.9 MB, free: 3.242 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004733/0.02246, allocations: 211.4 kB / 291.1 MB, free: 3.031 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002051/0.02266, allocations: 75.88 kB / 291.2 MB, free: 2.957 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003208/0.02587, allocations: 2.762 MB / 294 MB, free: 92 kB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002209/0.02609, allocations: 67.73 kB / 294 MB, free: 24 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.359e-05/0.02611, allocations: 8 kB / 294.1 MB, free: 16 kB / 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.0001653/0.02628, allocations: 177.3 kB / 294.2 MB, free: 15.83 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.515e-05/0.02635, allocations: 63.72 kB / 294.3 MB, free: 15.77 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.32e-05/0.02642, allocations: 52.42 kB / 294.3 MB, free: 15.72 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.901e-06/0.02642, allocations: 7.938 kB / 294.4 MB, free: 15.71 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.615e-06/0.02643, allocations: 0 / 294.4 MB, free: 15.71 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.075e-06/0.02643, allocations: 11.95 kB / 294.4 MB, free: 15.7 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003205/0.02675, allocations: 321.3 kB / 294.7 MB, free: 15.36 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.02676, allocations: 0 / 294.7 MB, free: 15.36 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001908/0.02695, allocations: 67.94 kB / 294.7 MB, free: 15.29 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004113/0.02736, allocations: 207.5 kB / 294.9 MB, free: 15.09 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.816e-05/0.02739, allocations: 7.984 kB / 295 MB, free: 15.08 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002711/0.0301, allocations: 2.759 MB / 297.7 MB, free: 12.2 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.0301, allocations: 4 kB / 297.7 MB, free: 12.2 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001289/0.03139, allocations: 0.5979 MB / 298.3 MB, free: 11.57 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001381/0.03153, allocations: 99.55 kB / 298.4 MB, free: 11.48 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.764e-05/0.03157, allocations: 15.94 kB / 298.4 MB, free: 11.46 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001948/0.03177, allocations: 39.95 kB / 298.5 MB, free: 11.42 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.859e-05/0.03187, allocations: 59.84 kB / 298.5 MB, free: 11.36 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.289e-05/0.03189, allocations: 11.98 kB / 298.5 MB, free: 11.35 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002007/0.03209, allocations: 267 kB / 298.8 MB, free: 11.09 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.03209, allocations: 0 / 298.8 MB, free: 11.09 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.000403/0.03249, allocations: 167.8 kB / 299 MB, free: 10.93 MB / 282.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.0001358/0.03263, allocations: 115.2 kB / 299.1 MB, free: 10.81 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001191/0.03382, allocations: 0.5795 MB / 299.7 MB, free: 10.19 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.03382, allocations: 0 / 299.7 MB, free: 10.19 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004947/0.03432, allocations: 437.1 kB / 300.1 MB, free: 9.738 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003086/0.03463, allocations: 88.75 kB / 300.2 MB, free: 9.652 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001636/0.03626, allocations: 0.9958 MB / 301.2 MB, free: 8.625 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.205e-05/0.03634, allocations: 121.8 kB / 301.3 MB, free: 8.484 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001244/0.03646, allocations: 47.28 kB / 301.3 MB, free: 8.438 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002036/0.03666, allocations: 158.1 kB / 301.5 MB, free: 8.281 MB / 282.7 MB Notification: Performance of SimCode: time 6.81e-07/0.03666, allocations: 0 / 301.5 MB, free: 8.281 MB / 282.7 MB Notification: Performance of Templates: time 0.01531/0.05197, allocations: 13.82 MB / 315.3 MB, free: 10.6 MB / 298.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.5124818622134626]