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.000972/0.000972, allocations: 78.66 kB / 21.42 MB, free: 3.074 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.0009962/0.0009962, allocations: 166 kB / 24.82 MB, free: 9.266 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.9844/0.9844, allocations: 177.1 MB / 205.3 MB, free: 5.465 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.823e-06/1.823e-06, allocations: 0 / 273.4 MB, free: 1.25 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.636e-05/2.818e-05, allocations: 6.312 kB / 273.4 MB, free: 1.242 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.00544/0.005468, allocations: 3.987 MB / 277.4 MB, free: 13.23 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002627/0.008095, allocations: 1.036 MB / 278.4 MB, free: 12.19 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000477/0.008572, allocations: 11.94 kB / 278.4 MB, free: 12.18 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002834/0.008855, allocations: 87.14 kB / 278.5 MB, free: 12.09 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005282/0.009383, allocations: 202.2 kB / 278.7 MB, free: 11.89 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007257/0.01011, allocations: 239.5 kB / 279 MB, free: 11.66 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001074/0.01118, allocations: 0.852 MB / 279.8 MB, free: 10.8 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002792/0.01146, allocations: 109.5 kB / 279.9 MB, free: 10.69 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009029/0.01237, allocations: 479 kB / 280.4 MB, free: 10.22 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004829/0.01285, allocations: 283.2 kB / 280.7 MB, free: 9.941 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001294/0.01298, allocations: 76 kB / 280.7 MB, free: 9.867 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001661/0.01314, allocations: 84 kB / 280.8 MB, free: 9.785 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001255/0.01327, allocations: 155.5 kB / 281 MB, free: 9.633 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002723/0.01354, allocations: 243.4 kB / 281.2 MB, free: 9.395 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008172/0.01436, allocations: 0.5218 MB / 281.7 MB, free: 8.871 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.378e-06/0.01437, allocations: 0 / 281.7 MB, free: 8.871 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.854e-06/0.01437, allocations: 0 / 281.7 MB, free: 8.871 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.67e-05/0.01439, allocations: 4 kB / 281.7 MB, free: 8.867 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.001949/0.01634, allocations: 1.011 MB / 282.7 MB, free: 7.812 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.137e-05/0.01639, allocations: 12.03 kB / 282.8 MB, free: 7.801 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002757/0.01666, allocations: 96.55 kB / 282.9 MB, free: 7.707 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005225/0.01719, allocations: 362.4 kB / 283.2 MB, free: 7.324 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.645e-05/0.01723, allocations: 29.38 kB / 283.2 MB, free: 7.297 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.762e-05/0.01731, allocations: 36.38 kB / 283.3 MB, free: 7.262 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008535/0.01816, allocations: 449.3 kB / 283.7 MB, free: 6.785 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.876e-05/0.01818, allocations: 4.125 kB / 283.7 MB, free: 6.781 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.285e-05/0.01822, allocations: 12.38 kB / 283.7 MB, free: 6.77 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.613e-05/0.01824, allocations: 15.94 kB / 283.7 MB, free: 6.754 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003749/0.01862, allocations: 158.8 kB / 283.9 MB, free: 6.598 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002747/0.02136, allocations: 1.887 MB / 285.8 MB, free: 4.633 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001287/0.02265, allocations: 377 kB / 286.1 MB, free: 4.254 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002693/0.02292, allocations: 143.3 kB / 286.3 MB, free: 4.113 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.738e-05/0.02296, allocations: 8.266 kB / 286.3 MB, free: 4.105 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003844/0.02334, allocations: 247.7 kB / 286.5 MB, free: 3.836 MB / 266.7 MB Notification: Performance of pre-optimization done (n=40): time 3.136e-06/0.02334, allocations: 0 / 286.5 MB, free: 3.836 MB / 266.7 MB Notification: Performance of matching and sorting (n=40): time 0.008559/0.0319, allocations: 1.132 MB / 287.7 MB, free: 2.691 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.648e-05/0.03195, allocations: 85.11 kB / 287.8 MB, free: 2.59 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003175/0.03227, allocations: 398.5 kB / 288.1 MB, free: 2.184 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.237e-05/0.03231, allocations: 37.7 kB / 288.2 MB, free: 2.141 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001512/0.03246, allocations: 283.5 kB / 288.5 MB, free: 1.859 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001025/0.03256, allocations: 146.8 kB / 288.6 MB, free: 1.715 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001307/0.03269, allocations: 79.62 kB / 288.7 MB, free: 1.625 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001527/0.03285, allocations: 0.5312 MB / 289.2 MB, free: 1.082 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001542/0.033, allocations: 86.53 kB / 289.3 MB, free: 0.9922 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001874/0.03319, allocations: 166.5 kB / 289.5 MB, free: 0.8086 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002877/0.03348, allocations: 191.4 kB / 289.6 MB, free: 0.6055 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.175e-06/0.03348, allocations: 4.031 kB / 289.6 MB, free: 0.6016 MB / 266.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0009439/0.03442, allocations: 470.9 kB / 290.1 MB, free: 124 kB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.779e-05/0.03445, allocations: 29.7 kB / 290.1 MB, free: 88 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.081e-06/0.03446, allocations: 4.031 kB / 290.1 MB, free: 84 kB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1372/0.1717, allocations: 212.8 kB / 290.3 MB, free: 25.3 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002665/0.1719, allocations: 76.36 kB / 290.4 MB, free: 25.3 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00277/0.1747, allocations: 2.756 MB / 293.2 MB, free: 23.39 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002782/0.175, allocations: 60.62 kB / 293.2 MB, free: 23.39 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.493e-05/0.175, allocations: 11.72 kB / 293.2 MB, free: 23.39 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.0001461/0.1752, allocations: 177.5 kB / 293.4 MB, free: 23.23 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.033e-05/0.1752, allocations: 59.19 kB / 293.5 MB, free: 23.23 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.687e-05/0.1753, allocations: 56.28 kB / 293.5 MB, free: 23.21 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.885e-06/0.1753, allocations: 12.41 kB / 293.5 MB, free: 23.21 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.534e-06/0.1753, allocations: 0 / 293.5 MB, free: 23.21 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.42e-06/0.1753, allocations: 4.203 kB / 293.6 MB, free: 23.21 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000323/0.1756, allocations: 326 kB / 293.9 MB, free: 23.1 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.1756, allocations: 0 / 293.9 MB, free: 23.1 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001882/0.1758, allocations: 63.31 kB / 293.9 MB, free: 23.1 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004118/0.1762, allocations: 218.2 kB / 294.1 MB, free: 23.09 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.869e-05/0.1763, allocations: 9.547 kB / 294.2 MB, free: 23.09 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002392/0.1787, allocations: 2.76 MB / 296.9 MB, free: 21.12 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.1787, allocations: 0 / 296.9 MB, free: 21.12 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001333/0.18, allocations: 0.5982 MB / 297.5 MB, free: 21 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001494/0.1801, allocations: 97.48 kB / 297.6 MB, free: 20.98 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.014e-05/0.1802, allocations: 14.42 kB / 297.6 MB, free: 20.97 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001922/0.1804, allocations: 46.03 kB / 297.7 MB, free: 20.97 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001063/0.1805, allocations: 50.84 kB / 297.7 MB, free: 20.97 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.121e-05/0.1805, allocations: 10.86 kB / 297.7 MB, free: 20.97 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001591/0.1807, allocations: 265.4 kB / 298 MB, free: 20.84 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1807, allocations: 8.594 kB / 298 MB, free: 20.84 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004163/0.1811, allocations: 175.7 kB / 298.2 MB, free: 20.83 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.0001072/0.1812, allocations: 102.7 kB / 298.3 MB, free: 20.75 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0007118/0.1819, allocations: 0.5854 MB / 298.9 MB, free: 20.45 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.1819, allocations: 0 / 298.9 MB, free: 20.45 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004859/0.1824, allocations: 432.2 kB / 299.3 MB, free: 20.24 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000289/0.1827, allocations: 94.19 kB / 299.4 MB, free: 20.24 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0016/0.1843, allocations: 0.9911 MB / 300.4 MB, free: 19.75 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.608e-05/0.1844, allocations: 122.9 kB / 300.5 MB, free: 19.67 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001482/0.1845, allocations: 45.64 kB / 300.5 MB, free: 19.65 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002134/0.1847, allocations: 154.5 kB / 300.7 MB, free: 19.59 MB / 266.7 MB Notification: Performance of SimCode: time 1.042e-06/0.1847, allocations: 0 / 300.7 MB, free: 19.59 MB / 266.7 MB Notification: Performance of Templates: time 0.01458/0.1993, allocations: 13.55 MB / 314.2 MB, free: 11.54 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.566840968094766]