Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.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.0008326/0.0008326, allocations: 80.8 kB / 22.29 MB, free: 2.207 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.001382/0.001382, allocations: 167 kB / 25.7 MB, free: 8.402 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 0.8677/0.8677, allocations: 158.6 MB / 187.6 MB, free: 2.77 MB / 170.7 MB " [Timeout remaining time 179] 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.InvertersApartRecord,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_3.2.3_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_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.233e-06/1.233e-06, allocations: 0 / 251.6 MB, free: 7.246 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.824e-05/1.948e-05, allocations: 6.25 kB / 251.6 MB, free: 7.238 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.009298/0.009317, allocations: 13.08 MB / 264.6 MB, free: 10.1 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01931/0.02863, allocations: 18.84 MB / 283.5 MB, free: 7.18 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00217/0.0308, allocations: 142.4 kB / 283.6 MB, free: 7.039 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002775/0.03357, allocations: 1.161 MB / 284.8 MB, free: 5.867 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006046/0.03962, allocations: 2.343 MB / 287.1 MB, free: 3.508 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003334/0.04295, allocations: 1.368 MB / 288.5 MB, free: 2.129 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.007505/0.05046, allocations: 6.626 MB / 295.1 MB, free: 11.48 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005826/0.05104, allocations: 298.5 kB / 295.4 MB, free: 11.15 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002555/0.0536, allocations: 2.837 MB / 298.3 MB, free: 8.309 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008623/0.05446, allocations: 0.7943 MB / 299 MB, free: 7.512 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001577/0.05462, allocations: 76 kB / 299.1 MB, free: 7.438 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002391/0.05701, allocations: 1.14 MB / 300.3 MB, free: 6.297 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001794/0.05719, allocations: 333.6 kB / 300.6 MB, free: 5.969 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008012/0.05799, allocations: 0.7515 MB / 301.3 MB, free: 5.215 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002962/0.06095, allocations: 2.821 MB / 304.2 MB, free: 2.383 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.06095, allocations: 0 / 304.2 MB, free: 2.383 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.332e-06/0.06095, allocations: 0 / 304.2 MB, free: 2.383 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.756e-05/0.06102, allocations: 0 / 304.2 MB, free: 2.383 MB / 282.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.00312/0.06414, allocations: 3.689 MB / 307.8 MB, free: 14.64 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.683e-05/0.06418, allocations: 11.98 kB / 307.9 MB, free: 14.62 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002358/0.06442, allocations: 287.6 kB / 308.1 MB, free: 14.34 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002043/0.06646, allocations: 2.074 MB / 310.2 MB, free: 12.16 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.368e-05/0.06648, allocations: 37 kB / 310.2 MB, free: 12.12 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.786e-05/0.06656, allocations: 55.94 kB / 310.3 MB, free: 12.07 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005131/0.06707, allocations: 475.4 kB / 310.8 MB, free: 11.59 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.5e-05/0.06709, allocations: 0 / 310.8 MB, free: 11.59 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.816e-05/0.06713, allocations: 16 kB / 310.8 MB, free: 11.58 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.776e-05/0.06714, allocations: 19.98 kB / 310.8 MB, free: 11.56 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003544/0.0675, allocations: 228.5 kB / 311 MB, free: 11.34 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002015/0.06951, allocations: 1.571 MB / 312.6 MB, free: 9.727 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002923/0.0698, allocations: 284.9 kB / 312.9 MB, free: 9.438 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002698/0.07007, allocations: 319 kB / 313.2 MB, free: 9.121 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02304/0.09311, allocations: 23.11 MB / 336.3 MB, free: 1.152 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004204/0.09353, allocations: 217.8 kB / 336.5 MB, free: 0.9297 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 2.445e-06/0.09354, allocations: 0 / 336.5 MB, free: 0.9297 MB / 314.7 MB Notification: Performance of matching and sorting (n=49): time 0.0005737/0.09411, allocations: 483 kB / 337 MB, free: 460 kB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.162e-05/0.09414, allocations: 63.33 kB / 337 MB, free: 384 kB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00149/0.09563, allocations: 2.677 MB / 339.7 MB, free: 13.68 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.344e-05/0.09567, allocations: 37.7 kB / 339.8 MB, free: 13.64 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003827/0.09605, allocations: 0.7677 MB / 340.5 MB, free: 12.86 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.833e-05/0.09615, allocations: 170.5 kB / 340.7 MB, free: 12.69 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001578/0.0963, allocations: 186.3 kB / 340.9 MB, free: 12.5 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.829e-05/0.09638, allocations: 345.9 kB / 341.2 MB, free: 12.16 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001057/0.09649, allocations: 77.95 kB / 341.3 MB, free: 12.08 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002486/0.09674, allocations: 448.2 kB / 341.7 MB, free: 11.47 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004354/0.09717, allocations: 0.617 MB / 342.3 MB, free: 10.68 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.46e-06/0.09718, allocations: 4 kB / 342.3 MB, free: 10.68 MB / 330.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.0006615/0.09784, allocations: 0.7004 MB / 343 MB, free: 9.973 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.15e-05/0.09786, allocations: 8 kB / 343.1 MB, free: 9.965 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.492e-05/0.09792, allocations: 23.98 kB / 343.1 MB, free: 9.941 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.178e-05/0.09794, allocations: 20 kB / 343.1 MB, free: 9.922 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004419/0.09838, allocations: 220.1 kB / 343.3 MB, free: 9.707 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.568e-05/0.09839, allocations: 27.86 kB / 343.3 MB, free: 9.68 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006334/0.09903, allocations: 111.2 kB / 343.5 MB, free: 9.57 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.29e-05/0.09909, allocations: 40 kB / 343.5 MB, free: 9.531 MB / 330.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.000265/0.09936, allocations: 165.5 kB / 343.7 MB, free: 9.359 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001708/0.09953, allocations: 247.7 kB / 343.9 MB, free: 9.117 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001025/0.1006, allocations: 0.7983 MB / 344.7 MB, free: 8.309 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.061e-06/0.1006, allocations: 7.938 kB / 344.7 MB, free: 8.301 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.1006, allocations: 8 kB / 344.7 MB, free: 8.293 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.1006, allocations: 0 / 344.7 MB, free: 8.293 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001387/0.102, allocations: 1.553 MB / 346.3 MB, free: 6.695 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.002e-05/0.102, allocations: 15.98 kB / 346.3 MB, free: 6.68 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002625/0.1023, allocations: 103.9 kB / 346.4 MB, free: 6.578 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.098e-06/0.1023, allocations: 4 kB / 346.4 MB, free: 6.574 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.911e-05/0.1023, allocations: 11.98 kB / 346.4 MB, free: 6.562 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.464e-06/0.1023, allocations: 0 / 346.4 MB, free: 6.562 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/0.1023, allocations: 4 kB / 346.4 MB, free: 6.559 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005707/0.1029, allocations: 0.6369 MB / 347 MB, free: 5.895 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003541/0.1032, allocations: 393.1 kB / 347.4 MB, free: 5.508 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001508/0.1034, allocations: 12 kB / 347.4 MB, free: 5.496 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003092/0.1037, allocations: 19.98 kB / 347.4 MB, free: 5.477 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.835e-05/0.1038, allocations: 39.92 kB / 347.5 MB, free: 5.438 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.602e-05/0.1038, allocations: 19.98 kB / 347.5 MB, free: 5.418 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0008719/0.1047, allocations: 1.418 MB / 348.9 MB, free: 3.996 MB / 330.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1047, allocations: 0 / 348.9 MB, free: 3.996 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0008337/0.1055, allocations: 0.5892 MB / 349.5 MB, free: 3.406 MB / 330.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.0008673/0.1064, allocations: 0.9346 MB / 350.4 MB, free: 2.461 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005929/0.107, allocations: 467.9 kB / 350.9 MB, free: 1.977 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.523e-05/0.107, allocations: 44.5 kB / 350.9 MB, free: 1.934 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002109/0.1072, allocations: 234.7 kB / 351.2 MB, free: 1.676 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000993/0.1082, allocations: 0.5336 MB / 351.7 MB, free: 1.137 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0988/0.207, allocations: 4.012 MB / 355.7 MB, free: 89.19 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002268/0.2072, allocations: 388.4 kB / 356.1 MB, free: 89.09 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0007113/0.208, allocations: 362.4 kB / 356.5 MB, free: 89.06 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007578/0.2087, allocations: 0.5766 MB / 357 MB, free: 89.02 MB / 330.7 MB Notification: Performance of SimCode: time 1.704e-06/0.2087, allocations: 0 / 357 MB, free: 89.02 MB / 330.7 MB Notification: Performance of Templates: time 0.04042/0.2491, allocations: 37.55 MB / 394.6 MB, free: 58.45 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/InvertersApartRecord/InvertersApartRecord.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.366287625860423]