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.0009646/0.0009646, allocations: 91.61 kB / 22.19 MB, free: 2.379 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.0009939/0.0009939, allocations: 162 kB / 25.45 MB, free: 8.855 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.8942/0.8942, allocations: 158.6 MB / 187.2 MB, free: 3.02 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.523e-06/1.523e-06, allocations: 0 / 299.7 MB, free: 3.016 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.418e-05/2.57e-05, allocations: 2.281 kB / 299.7 MB, free: 3.012 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.1591/0.1591, allocations: 11.82 MB / 311.5 MB, free: 9.094 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.01674/0.1759, allocations: 17.04 MB / 328.6 MB, free: 13.32 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00331/0.1792, allocations: 137.1 kB / 328.7 MB, free: 13.22 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003369/0.1826, allocations: 1.12 MB / 329.8 MB, free: 12.65 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01028/0.1928, allocations: 2.386 MB / 332.2 MB, free: 10.81 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007256/0.2001, allocations: 1.392 MB / 333.6 MB, free: 9.742 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.009839/0.2099, allocations: 6.563 MB / 340.2 MB, free: 5.902 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008116/0.2107, allocations: 261.8 kB / 340.4 MB, free: 5.621 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002285/0.213, allocations: 1.434 MB / 341.8 MB, free: 4.184 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007713/0.2138, allocations: 0.7591 MB / 342.6 MB, free: 3.422 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001247/0.2139, allocations: 80 kB / 342.7 MB, free: 3.344 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003359/0.2173, allocations: 1.085 MB / 343.8 MB, free: 2.254 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000235/0.2175, allocations: 333.5 kB / 344.1 MB, free: 1.926 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001096/0.2186, allocations: 0.7437 MB / 344.8 MB, free: 1.18 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006367/0.225, allocations: 3.78 MB / 348.6 MB, free: 13.39 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.244e-06/0.225, allocations: 0 / 348.6 MB, free: 13.39 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.926e-06/0.225, allocations: 0 / 348.6 MB, free: 13.39 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001132/0.2251, allocations: 0 / 348.6 MB, free: 13.39 MB / 314.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.003956/0.2291, allocations: 3.722 MB / 352.3 MB, free: 9.605 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.183e-05/0.2291, allocations: 19.98 kB / 352.4 MB, free: 9.586 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004309/0.2295, allocations: 415 kB / 352.8 MB, free: 9.18 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003382/0.2329, allocations: 2.307 MB / 355.1 MB, free: 6.777 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.9e-05/0.233, allocations: 33 kB / 355.1 MB, free: 6.742 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001345/0.2331, allocations: 63.94 kB / 355.2 MB, free: 6.68 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001026/0.2341, allocations: 0.7304 MB / 355.9 MB, free: 5.945 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.667e-05/0.2341, allocations: 0 / 355.9 MB, free: 5.945 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.328e-05/0.2342, allocations: 27.98 kB / 355.9 MB, free: 5.918 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.314e-05/0.2342, allocations: 19.98 kB / 355.9 MB, free: 5.898 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001058/0.2353, allocations: 0.8202 MB / 356.8 MB, free: 5.082 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003919/0.2392, allocations: 2.755 MB / 359.5 MB, free: 2.266 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007394/0.2399, allocations: 0.5202 MB / 360 MB, free: 1.738 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008912/0.2408, allocations: 0.5671 MB / 360.6 MB, free: 1.164 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01566/0.2565, allocations: 13.73 MB / 374.3 MB, free: 3.055 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005321/0.257, allocations: 373.9 kB / 374.7 MB, free: 2.676 MB / 330.7 MB Notification: Performance of pre-optimization done (n=49): time 3.326e-06/0.257, allocations: 0 / 374.7 MB, free: 2.676 MB / 330.7 MB Notification: Performance of matching and sorting (n=49): time 0.0015/0.2585, allocations: 1.116 MB / 375.8 MB, free: 1.551 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.519e-05/0.2586, allocations: 59.41 kB / 375.9 MB, free: 1.48 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003018/0.2616, allocations: 2.98 MB / 378.9 MB, free: 14.49 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.434e-05/0.2617, allocations: 33.7 kB / 378.9 MB, free: 14.45 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001008/0.2627, allocations: 1.506 MB / 380.4 MB, free: 12.94 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001708/0.2628, allocations: 174.6 kB / 380.6 MB, free: 12.77 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002615/0.2631, allocations: 226.3 kB / 380.8 MB, free: 12.54 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001209/0.2632, allocations: 341.9 kB / 381.1 MB, free: 12.2 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003909/0.2636, allocations: 237.9 kB / 381.4 MB, free: 11.96 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009294/0.2645, allocations: 0.6057 MB / 382 MB, free: 11.19 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009303/0.2655, allocations: 0.8983 MB / 382.9 MB, free: 10.12 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.877e-06/0.2655, allocations: 4 kB / 382.9 MB, free: 10.11 MB / 346.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001752/0.2672, allocations: 1.248 MB / 384.1 MB, free: 8.859 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.6e-05/0.2673, allocations: 12 kB / 384.1 MB, free: 8.848 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.493e-05/0.2673, allocations: 87.44 kB / 384.2 MB, free: 8.766 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.621e-05/0.2674, allocations: 20 kB / 384.2 MB, free: 8.746 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004352/0.2678, allocations: 199.6 kB / 384.4 MB, free: 8.551 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.481e-05/0.2678, allocations: 31.86 kB / 384.5 MB, free: 8.52 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009592/0.2688, allocations: 115.5 kB / 384.6 MB, free: 8.406 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001038/0.2689, allocations: 64 kB / 384.6 MB, free: 8.344 MB / 346.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.0008389/0.2697, allocations: 429.5 kB / 385 MB, free: 7.914 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003336/0.2701, allocations: 405.5 kB / 385.4 MB, free: 7.516 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001853/0.2719, allocations: 1.206 MB / 386.6 MB, free: 6.305 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.065e-05/0.2719, allocations: 4 kB / 386.7 MB, free: 6.301 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.508e-06/0.272, allocations: 0 / 386.7 MB, free: 6.301 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.388e-06/0.272, allocations: 3.984 kB / 386.7 MB, free: 6.297 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002796/0.2748, allocations: 1.936 MB / 388.6 MB, free: 4.309 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.958e-05/0.2748, allocations: 75.94 kB / 388.7 MB, free: 4.234 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002822/0.2751, allocations: 99.91 kB / 388.8 MB, free: 4.137 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.025e-06/0.2751, allocations: 0 / 388.8 MB, free: 4.137 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.893e-05/0.2751, allocations: 32 kB / 388.8 MB, free: 4.105 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.653e-06/0.2752, allocations: 3.938 kB / 388.8 MB, free: 4.102 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.2752, allocations: 0 / 388.8 MB, free: 4.102 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001476/0.2766, allocations: 1.32 MB / 390.1 MB, free: 2.754 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006549/0.2773, allocations: 423.1 kB / 390.5 MB, free: 2.336 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001494/0.2774, allocations: 12 kB / 390.5 MB, free: 2.324 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003497/0.2778, allocations: 36.02 kB / 390.6 MB, free: 2.289 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001191/0.2779, allocations: 55.94 kB / 390.6 MB, free: 2.234 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.184e-05/0.278, allocations: 47.92 kB / 390.7 MB, free: 2.188 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.00185/0.2798, allocations: 1.916 MB / 392.6 MB, free: 280 kB / 346.7 MB Notification: Performance of sort global known variables: time 3.31e-07/0.2798, allocations: 0 / 392.6 MB, free: 280 kB / 346.7 MB Notification: Performance of remove unused functions: time 0.0009975/0.2808, allocations: 0.5969 MB / 393.2 MB, free: 15.68 MB / 362.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.0008943/0.2817, allocations: 0.828 MB / 394 MB, free: 14.84 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000994/0.2827, allocations: 0.7713 MB / 394.8 MB, free: 14.04 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.437e-06/0.2827, allocations: 0 / 394.8 MB, free: 14.04 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004224/0.2831, allocations: 427 kB / 395.2 MB, free: 13.6 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001261/0.2844, allocations: 0.5195 MB / 395.7 MB, free: 13.08 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004225/0.2886, allocations: 4.384 MB / 400.1 MB, free: 8.645 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006767/0.2893, allocations: 1.118 MB / 401.2 MB, free: 7.496 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001968/0.2895, allocations: 156.5 kB / 401.4 MB, free: 7.344 MB / 362.7 MB Notification: Performance of SimCode: time 2.054e-06/0.2895, allocations: 0 / 401.4 MB, free: 7.344 MB / 362.7 MB Notification: Performance of Templates: time 0.04459/0.3341, allocations: 39.44 MB / 440.8 MB, free: 15.86 MB / 410.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=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.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: 8.885917003266513]