Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.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.001817/0.001817, allocations: 99.53 kB / 21.73 MB, free: 2.688 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.001891/0.001891, allocations: 165.1 kB / 25.03 MB, free: 8.418 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.317/1.317, allocations: 158.6 MB / 186.8 MB, free: 2.902 MB / 170.7 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Spice3.Examples.Inverter,tolerance=1e-07,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter") translateModel(Modelica.Electrical.Spice3.Examples.Inverter,tolerance=1e-07,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.784e-06/1.784e-06, allocations: 0 / 250.4 MB, free: 7.836 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.682e-05/2.86e-05, allocations: 2.312 kB / 250.4 MB, free: 7.832 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.01039/0.01042, allocations: 7.374 MB / 257.7 MB, free: 428 kB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0264/0.03682, allocations: 17.58 MB / 275.3 MB, free: 14.77 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001223/0.03804, allocations: 102.9 kB / 275.4 MB, free: 14.67 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002453/0.0405, allocations: 0.7397 MB / 276.2 MB, free: 13.93 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006149/0.04664, allocations: 1.846 MB / 278 MB, free: 12.07 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004729/0.05137, allocations: 1.3 MB / 279.3 MB, free: 10.76 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.006045/0.05742, allocations: 3.294 MB / 282.6 MB, free: 7.453 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003425/0.05776, allocations: 124.9 kB / 282.7 MB, free: 7.309 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001063/0.05883, allocations: 0.7247 MB / 283.4 MB, free: 6.582 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006814/0.05951, allocations: 398.7 kB / 283.8 MB, free: 6.191 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001301/0.05964, allocations: 44 kB / 283.9 MB, free: 6.148 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003307/0.06294, allocations: 1.062 MB / 284.9 MB, free: 5.086 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002262/0.06317, allocations: 170.8 kB / 285.1 MB, free: 4.918 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006064/0.06378, allocations: 382.8 kB / 285.5 MB, free: 4.543 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003883/0.06766, allocations: 2.293 MB / 287.8 MB, free: 2.242 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.06766, allocations: 0 / 287.8 MB, free: 2.242 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.312e-06/0.06766, allocations: 0 / 287.8 MB, free: 2.242 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.679e-05/0.06768, allocations: 4 kB / 287.8 MB, free: 2.238 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.003845/0.07153, allocations: 2.211 MB / 290 MB, free: 15.97 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.813e-05/0.07157, allocations: 11.98 kB / 290 MB, free: 15.96 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003577/0.07193, allocations: 222.7 kB / 290.2 MB, free: 15.74 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002485/0.07442, allocations: 1.439 MB / 291.7 MB, free: 14.23 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.079e-05/0.07445, allocations: 20.66 kB / 291.7 MB, free: 14.21 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.586e-05/0.07453, allocations: 24 kB / 291.7 MB, free: 14.18 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009065/0.07544, allocations: 385.9 kB / 292.1 MB, free: 13.8 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.359e-05/0.07545, allocations: 0 / 292.1 MB, free: 13.8 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.692e-05/0.0755, allocations: 8 kB / 292.1 MB, free: 13.79 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.406e-05/0.07552, allocations: 8 kB / 292.1 MB, free: 13.79 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001004/0.07652, allocations: 406.4 kB / 292.5 MB, free: 13.39 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003846/0.08037, allocations: 1.741 MB / 294.2 MB, free: 11.6 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007994/0.08116, allocations: 287.9 kB / 294.5 MB, free: 11.3 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006837/0.08185, allocations: 324.8 kB / 294.8 MB, free: 10.98 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01626/0.09811, allocations: 7.87 MB / 302.7 MB, free: 2.906 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005967/0.0987, allocations: 248.8 kB / 302.9 MB, free: 2.648 MB / 282.7 MB Notification: Performance of pre-optimization done (n=29): time 2.175e-06/0.0987, allocations: 0 / 302.9 MB, free: 2.648 MB / 282.7 MB Notification: Performance of matching and sorting (n=29): time 0.002063/0.1008, allocations: 0.738 MB / 303.7 MB, free: 1.898 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.442e-05/0.1008, allocations: 59.39 kB / 303.7 MB, free: 1.828 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002839/0.1037, allocations: 1.973 MB / 305.7 MB, free: 15.81 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.954e-05/0.1037, allocations: 33.7 kB / 305.7 MB, free: 15.77 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009835/0.1047, allocations: 0.8965 MB / 306.6 MB, free: 14.87 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001262/0.1048, allocations: 103.1 kB / 306.7 MB, free: 14.77 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002465/0.1051, allocations: 147.7 kB / 306.9 MB, free: 14.62 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0005215/0.1056, allocations: 0.5004 MB / 307.4 MB, free: 14.11 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003978/0.106, allocations: 140.9 kB / 307.5 MB, free: 13.97 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006679/0.1067, allocations: 431.7 kB / 307.9 MB, free: 13.42 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001078/0.1077, allocations: 0.5928 MB / 308.5 MB, free: 12.7 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.554e-06/0.1077, allocations: 4 kB / 308.5 MB, free: 12.7 MB / 298.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001614/0.1094, allocations: 0.7474 MB / 309.3 MB, free: 11.94 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.026e-05/0.1094, allocations: 12.06 kB / 309.3 MB, free: 11.93 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.287e-05/0.1095, allocations: 47.98 kB / 309.3 MB, free: 11.88 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003891/0.1099, allocations: 139.6 kB / 309.5 MB, free: 11.74 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004084/0.1103, allocations: 103.9 kB / 309.6 MB, free: 11.64 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009646/0.1112, allocations: 0.9676 MB / 310.5 MB, free: 10.64 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005222/0.1118, allocations: 67.62 kB / 310.6 MB, free: 10.57 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.018e-05/0.1118, allocations: 36 kB / 310.7 MB, free: 10.54 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 14 (vin.counter,$PRE.vin.counter,v.counter,$PRE.v.counter,v.counter2,$PRE.v.counter2,v.T0,$PRE.v.T0,vin.counter2,$PRE.vin.counter2,vin.T0,$PRE.vin.T0,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (53): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * 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 {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0004963/0.1123, allocations: 320.3 kB / 311 MB, free: 10.21 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002606/0.1126, allocations: 202.8 kB / 311.2 MB, free: 10.02 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001801/0.1144, allocations: 0.7072 MB / 311.9 MB, free: 9.297 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.005e-05/0.1144, allocations: 4 kB / 311.9 MB, free: 9.293 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.1144, allocations: 0 / 311.9 MB, free: 9.293 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.404e-06/0.1144, allocations: 3.938 kB / 311.9 MB, free: 9.289 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002739/0.1171, allocations: 1.511 MB / 313.4 MB, free: 7.719 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.842e-05/0.1172, allocations: 32 kB / 313.4 MB, free: 7.688 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002131/0.1174, allocations: 43.91 kB / 313.5 MB, free: 7.645 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002854/0.1177, allocations: 131.6 kB / 313.6 MB, free: 7.512 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.523e-05/0.1178, allocations: 16 kB / 313.6 MB, free: 7.496 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001189/0.1189, allocations: 0.9523 MB / 314.6 MB, free: 6.512 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.1189, allocations: 0 / 314.6 MB, free: 6.512 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001379/0.1203, allocations: 0.7647 MB / 315.3 MB, free: 5.711 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005178/0.1208, allocations: 224.5 kB / 315.5 MB, free: 5.492 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001543/0.121, allocations: 4 kB / 315.5 MB, free: 5.488 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003777/0.1214, allocations: 20.02 kB / 315.6 MB, free: 5.469 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001441/0.1215, allocations: 47.88 kB / 315.6 MB, free: 5.422 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.08e-05/0.1216, allocations: 24 kB / 315.6 MB, free: 5.398 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.001704/0.1233, allocations: 1.141 MB / 316.8 MB, free: 4.238 MB / 298.7 MB Notification: Performance of sort global known variables: time 9e-08/0.1233, allocations: 0 / 316.8 MB, free: 4.238 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000966/0.1242, allocations: 335.6 kB / 317.1 MB, free: 3.91 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin.T0,vin.counter,vin.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 4 (vin.counter2,v.counter2,vin.counter,v.counter) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * 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 {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001042/0.1253, allocations: 0.6049 MB / 317.7 MB, free: 3.297 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001265/0.1265, allocations: 0.4935 MB / 318.2 MB, free: 2.789 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.1265, allocations: 1.375 kB / 318.2 MB, free: 2.789 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006353/0.1272, allocations: 276.2 kB / 318.5 MB, free: 2.504 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001026/0.1282, allocations: 278.6 kB / 318.7 MB, free: 2.23 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00381/0.132, allocations: 2.27 MB / 321 MB, free: 15.9 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009185/0.1329, allocations: 0.5628 MB / 321.6 MB, free: 15.3 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0005563/0.1335, allocations: 203.9 kB / 321.8 MB, free: 15.09 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001775/0.1337, allocations: 92.44 kB / 321.9 MB, free: 15.01 MB / 314.7 MB Notification: Performance of SimCode: time 1.012e-06/0.1337, allocations: 0 / 321.9 MB, free: 15.01 MB / 314.7 MB Notification: Performance of Templates: time 0.03962/0.1733, allocations: 19.56 MB / 341.4 MB, free: 11.46 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.sim & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/Inverter/Inverter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.031308586010709]