Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00102/0.00102, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001587/0.002607, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009405/0.0009405, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001434/0.002374, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8363/0.8363, allocations: 173.4 MB / 186 MB, free: 7.523 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1401/0.9764, allocations: 52.48 MB / 238.5 MB, free: 7.629 MB / 234.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") translateModel(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.242e-06/1.242e-06, allocations: 0 / 239.7 MB, free: 6.367 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.102e-05/2.226e-05, allocations: 3.281 kB / 239.7 MB, free: 6.363 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.02782/0.02784, allocations: 13.78 MB / 253.5 MB, free: 8.539 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.03675/0.06459, allocations: 19.88 MB / 273.4 MB, free: 4.605 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003111/0.0677, allocations: 130.6 kB / 273.5 MB, free: 4.477 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003799/0.0715, allocations: 1.185 MB / 274.7 MB, free: 3.285 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008279/0.07978, allocations: 2.379 MB / 277.1 MB, free: 0.8867 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004926/0.0847, allocations: 1.407 MB / 278.5 MB, free: 15.47 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.006219/0.09092, allocations: 6.642 MB / 285.1 MB, free: 8.805 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005023/0.09142, allocations: 294.5 kB / 285.4 MB, free: 8.477 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002848/0.09427, allocations: 3.44 MB / 288.9 MB, free: 4.949 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007764/0.09505, allocations: 0.8291 MB / 289.7 MB, free: 4.117 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001396/0.09519, allocations: 72 kB / 289.8 MB, free: 4.047 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002324/0.09751, allocations: 1.264 MB / 291 MB, free: 2.781 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001646/0.09768, allocations: 269.8 kB / 291.3 MB, free: 2.516 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005576/0.09823, allocations: 0.6775 MB / 292 MB, free: 1.836 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002307/0.1005, allocations: 2.622 MB / 294.6 MB, free: 15.2 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.257e-05/0.1006, allocations: 0 / 294.6 MB, free: 15.2 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.262e-06/0.1006, allocations: 0 / 294.6 MB, free: 15.2 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.522e-05/0.1006, allocations: 4 kB / 294.6 MB, free: 15.2 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.002977/0.1036, allocations: 4.366 MB / 299 MB, free: 10.76 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.812e-05/0.1036, allocations: 8.031 kB / 299 MB, free: 10.75 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002464/0.1039, allocations: 283.7 kB / 299.3 MB, free: 10.48 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001694/0.1056, allocations: 2.058 MB / 301.3 MB, free: 8.301 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.29e-05/0.1056, allocations: 40.98 kB / 301.4 MB, free: 8.262 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.581e-05/0.1057, allocations: 55.92 kB / 301.4 MB, free: 8.207 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004879/0.1061, allocations: 463.5 kB / 301.9 MB, free: 7.746 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.259e-05/0.1062, allocations: 3.984 kB / 301.9 MB, free: 7.742 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.901e-05/0.1062, allocations: 23.94 kB / 301.9 MB, free: 7.719 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.444e-05/0.1062, allocations: 19.98 kB / 301.9 MB, free: 7.699 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003107/0.1065, allocations: 224.5 kB / 302.1 MB, free: 7.477 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001875/0.1084, allocations: 1.575 MB / 303.7 MB, free: 5.871 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002721/0.1087, allocations: 284.8 kB / 304 MB, free: 5.582 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002448/0.1089, allocations: 330.9 kB / 304.3 MB, free: 5.258 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1186/0.2275, allocations: 22.92 MB / 327.2 MB, free: 47.35 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003042/0.2278, allocations: 211.5 kB / 327.4 MB, free: 47.3 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 2.585e-06/0.2278, allocations: 0 / 327.4 MB, free: 47.3 MB / 314.7 MB Notification: Performance of matching and sorting (n=49): time 0.0005492/0.2284, allocations: 485 kB / 327.9 MB, free: 47.27 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.356e-05/0.2284, allocations: 64.73 kB / 328 MB, free: 47.21 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001385/0.2298, allocations: 2.662 MB / 330.6 MB, free: 46.92 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.111e-05/0.2298, allocations: 37.03 kB / 330.7 MB, free: 46.89 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003588/0.2302, allocations: 0.7599 MB / 331.4 MB, free: 46.77 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.299e-05/0.2302, allocations: 168.9 kB / 331.6 MB, free: 46.75 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001456/0.2304, allocations: 194.8 kB / 331.8 MB, free: 46.71 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 3.828e-05/0.2304, allocations: 345.6 kB / 332.1 MB, free: 46.4 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.654e-05/0.2305, allocations: 74.09 kB / 332.2 MB, free: 46.4 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001858/0.2307, allocations: 454.4 kB / 332.6 MB, free: 45.95 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003846/0.2311, allocations: 0.6619 MB / 333.3 MB, free: 45.51 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.43e-06/0.2311, allocations: 3.219 kB / 333.3 MB, free: 45.51 MB / 314.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.0005525/0.2317, allocations: 0.6906 MB / 334 MB, free: 45.47 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.801e-05/0.2317, allocations: 15.8 kB / 334 MB, free: 45.47 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.882e-05/0.2317, allocations: 20.31 kB / 334 MB, free: 45.47 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.867e-05/0.2317, allocations: 17.22 kB / 334 MB, free: 45.47 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003989/0.2321, allocations: 233 kB / 334.3 MB, free: 45.47 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.121e-05/0.2321, allocations: 26.52 kB / 334.3 MB, free: 45.47 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004306/0.2326, allocations: 99.27 kB / 334.4 MB, free: 45.45 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.317e-05/0.2326, allocations: 40.03 kB / 334.4 MB, free: 45.45 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * 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 (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002268/0.2329, allocations: 180.2 kB / 334.6 MB, free: 45.33 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001415/0.233, allocations: 245.8 kB / 334.8 MB, free: 45.33 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008465/0.2338, allocations: 0.7858 MB / 335.6 MB, free: 45.25 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.338e-06/0.2339, allocations: 3.312 kB / 335.6 MB, free: 45.25 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.142e-06/0.2339, allocations: 3.219 kB / 335.6 MB, free: 45.25 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.2339, allocations: 2.719 kB / 335.6 MB, free: 45.25 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001116/0.235, allocations: 1.551 MB / 337.2 MB, free: 44.98 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.518e-05/0.235, allocations: 6.531 kB / 337.2 MB, free: 44.98 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002469/0.2353, allocations: 109 kB / 337.3 MB, free: 44.98 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002964/0.2356, allocations: 390 kB / 337.7 MB, free: 44.77 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.027e-06/0.2356, allocations: 3.469 kB / 337.7 MB, free: 44.77 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.526e-05/0.2356, allocations: 14.47 kB / 337.7 MB, free: 44.77 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.298e-06/0.2356, allocations: 8.75 kB / 337.7 MB, free: 44.76 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.2356, allocations: 0 / 337.7 MB, free: 44.76 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004893/0.2361, allocations: 0.6359 MB / 338.3 MB, free: 44.59 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001409/0.2362, allocations: 12.23 kB / 338.4 MB, free: 44.59 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002965/0.2365, allocations: 18.58 kB / 338.4 MB, free: 44.59 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.286e-05/0.2366, allocations: 46.89 kB / 338.4 MB, free: 44.58 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.932e-05/0.2366, allocations: 18.17 kB / 338.4 MB, free: 44.58 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0007422/0.2374, allocations: 1.413 MB / 339.9 MB, free: 44.45 MB / 314.7 MB Notification: Performance of sort global known variables: time 6e-08/0.2374, allocations: 0 / 339.9 MB, free: 44.45 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007422/0.2381, allocations: 0.5851 MB / 340.4 MB, free: 44.44 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (c1.vinternal,c2.vinternal) * 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 (42): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007679/0.2389, allocations: 0.9295 MB / 341.4 MB, free: 44.31 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0004042/0.2393, allocations: 480.5 kB / 341.8 MB, free: 44.17 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.906e-05/0.2393, allocations: 44.56 kB / 341.9 MB, free: 44.17 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001993/0.2395, allocations: 273.2 kB / 342.1 MB, free: 44.03 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001993/0.2415, allocations: 6.242 MB / 348.4 MB, free: 37.87 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005694/0.2472, allocations: 4.017 MB / 352.4 MB, free: 35.85 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001921/0.2474, allocations: 387.6 kB / 352.8 MB, free: 35.75 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0005453/0.2479, allocations: 360.4 kB / 353.1 MB, free: 35.49 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006493/0.2486, allocations: 0.5714 MB / 353.7 MB, free: 35 MB / 314.7 MB Notification: Performance of SimCode: time 1.282e-06/0.2486, allocations: 0 / 353.7 MB, free: 35 MB / 314.7 MB Notification: Performance of Templates: time 0.0373/0.2859, allocations: 38.52 MB / 392.2 MB, free: 13.97 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/InvertersApartRecord/InvertersApartRecord.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.1570820156484842]