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.001501/0.001501, allocations: 92.62 kB / 20.96 MB, free: 3.473 MB / 18.57 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.001538/0.001538, allocations: 149.4 kB / 24.26 MB, free: 184 kB / 18.57 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 1.464/1.464, allocations: 173.4 MB / 200.8 MB, free: 9.289 MB / 186.7 MB " [Timeout remaining time 178] 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.703e-06/1.703e-06, allocations: 0 / 267.3 MB, free: 6.723 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.49e-05/2.66e-05, allocations: 2.312 kB / 267.3 MB, free: 6.719 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01598/0.01601, allocations: 12.41 MB / 279.7 MB, free: 10.25 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1517/0.1677, allocations: 17.85 MB / 297.6 MB, free: 13.96 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001769/0.1695, allocations: 135.9 kB / 297.7 MB, free: 13.96 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002805/0.1723, allocations: 1.141 MB / 298.8 MB, free: 13.87 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006706/0.179, allocations: 2.43 MB / 301.3 MB, free: 12.95 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00493/0.1839, allocations: 1.455 MB / 302.7 MB, free: 12.55 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00872/0.1926, allocations: 6.683 MB / 309.4 MB, free: 10.45 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005801/0.1932, allocations: 265 kB / 309.7 MB, free: 10.28 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001872/0.1951, allocations: 1.575 MB / 311.2 MB, free: 9.5 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008686/0.196, allocations: 0.7901 MB / 312 MB, free: 9.191 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001522/0.1961, allocations: 72.28 kB / 312.1 MB, free: 9.191 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003235/0.1993, allocations: 1.212 MB / 313.3 MB, free: 8.852 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002136/0.1996, allocations: 332.4 kB / 313.6 MB, free: 8.602 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008197/0.2004, allocations: 0.7363 MB / 314.4 MB, free: 7.914 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003392/0.2038, allocations: 3.758 MB / 318.1 MB, free: 4.457 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/0.2038, allocations: 0 / 318.1 MB, free: 4.457 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.413e-06/0.2038, allocations: 0 / 318.1 MB, free: 4.457 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.661e-05/0.2038, allocations: 0 / 318.1 MB, free: 4.457 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: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.003771/0.2076, allocations: 3.689 MB / 321.8 MB, free: 0.7148 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.341e-05/0.2076, allocations: 12.92 kB / 321.8 MB, free: 0.7031 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003637/0.208, allocations: 454.1 kB / 322.3 MB, free: 264 kB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003876/0.2119, allocations: 2.588 MB / 324.9 MB, free: 13.66 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.476e-05/0.2119, allocations: 37 kB / 324.9 MB, free: 13.62 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001506/0.2121, allocations: 59.95 kB / 325 MB, free: 13.57 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001534/0.2136, allocations: 0.7265 MB / 325.7 MB, free: 12.83 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.584e-05/0.2136, allocations: 0 / 325.7 MB, free: 12.83 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.306e-05/0.2137, allocations: 23.98 kB / 325.7 MB, free: 12.81 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.873e-05/0.2137, allocations: 23.94 kB / 325.7 MB, free: 12.79 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001779/0.2155, allocations: 0.8273 MB / 326.6 MB, free: 11.96 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005327/0.2208, allocations: 2.754 MB / 329.3 MB, free: 9.184 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001277/0.2221, allocations: 0.5202 MB / 329.8 MB, free: 8.656 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00107/0.2232, allocations: 0.5665 MB / 330.4 MB, free: 8.086 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02848/0.2517, allocations: 15.2 MB / 345.6 MB, free: 8.574 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008476/0.2525, allocations: 370 kB / 346 MB, free: 8.203 MB / 298.7 MB Notification: Performance of pre-optimization done (n=49): time 2.264e-06/0.2525, allocations: 0 / 346 MB, free: 8.203 MB / 298.7 MB Notification: Performance of matching and sorting (n=49): time 0.002583/0.2551, allocations: 1.122 MB / 347.1 MB, free: 7.074 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.976e-05/0.2551, allocations: 55.41 kB / 347.1 MB, free: 7.008 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004043/0.2592, allocations: 2.954 MB / 350.1 MB, free: 4.043 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.289e-05/0.2593, allocations: 33.7 kB / 350.1 MB, free: 4.004 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001604/0.2609, allocations: 1.498 MB / 351.6 MB, free: 2.5 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001968/0.2611, allocations: 176.6 kB / 351.8 MB, free: 2.332 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003551/0.2614, allocations: 222.4 kB / 352 MB, free: 2.109 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002647/0.2617, allocations: 349.9 kB / 352.4 MB, free: 1.762 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006502/0.2623, allocations: 245.8 kB / 352.6 MB, free: 1.52 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009864/0.2633, allocations: 0.594 MB / 353.2 MB, free: 0.7422 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001742/0.2651, allocations: 0.9003 MB / 354.1 MB, free: 15.68 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.51e-05/0.2651, allocations: 4 kB / 354.1 MB, free: 15.67 MB / 314.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002529/0.2676, allocations: 1.283 MB / 355.4 MB, free: 14.38 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.571e-05/0.2676, allocations: 14.97 kB / 355.4 MB, free: 14.37 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000122/0.2677, allocations: 84.16 kB / 355.5 MB, free: 14.29 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.282e-05/0.2678, allocations: 16 kB / 355.5 MB, free: 14.27 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000775/0.2686, allocations: 207.6 kB / 355.7 MB, free: 14.07 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.808e-05/0.2686, allocations: 23.92 kB / 355.7 MB, free: 14.05 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009279/0.2695, allocations: 111.3 kB / 355.8 MB, free: 13.94 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00012/0.2696, allocations: 64 kB / 355.9 MB, free: 13.88 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.0007314/0.2704, allocations: 433.5 kB / 356.3 MB, free: 13.44 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005016/0.2709, allocations: 417.5 kB / 356.7 MB, free: 13.03 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0029/0.2738, allocations: 1.192 MB / 357.9 MB, free: 11.84 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.476e-06/0.2738, allocations: 4 kB / 357.9 MB, free: 11.84 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.217e-06/0.2738, allocations: 4 kB / 357.9 MB, free: 11.84 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.408e-06/0.2738, allocations: 3.938 kB / 357.9 MB, free: 11.83 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003632/0.2774, allocations: 1.938 MB / 359.9 MB, free: 9.859 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001094/0.2775, allocations: 68 kB / 359.9 MB, free: 9.793 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005241/0.278, allocations: 91.86 kB / 360 MB, free: 9.703 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.777e-06/0.278, allocations: 0 / 360 MB, free: 9.703 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.947e-05/0.2781, allocations: 35.98 kB / 360.1 MB, free: 9.668 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.009e-06/0.2781, allocations: 4 kB / 360.1 MB, free: 9.664 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.719e-06/0.2781, allocations: 7.562 kB / 360.1 MB, free: 9.66 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002618/0.2807, allocations: 1.328 MB / 361.4 MB, free: 8.305 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008108/0.2816, allocations: 431.2 kB / 361.8 MB, free: 7.883 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002833/0.2818, allocations: 11.98 kB / 361.8 MB, free: 7.871 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006948/0.2825, allocations: 31.97 kB / 361.9 MB, free: 7.84 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00019/0.2827, allocations: 75.78 kB / 361.9 MB, free: 7.766 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.884e-05/0.2828, allocations: 36 kB / 362 MB, free: 7.73 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.002874/0.2857, allocations: 1.903 MB / 363.9 MB, free: 5.828 MB / 314.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2857, allocations: 0 / 363.9 MB, free: 5.828 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001537/0.2872, allocations: 0.593 MB / 364.5 MB, free: 5.234 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.001294/0.2885, allocations: 0.8349 MB / 365.3 MB, free: 4.531 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001779/0.2903, allocations: 0.7792 MB / 366.1 MB, free: 3.727 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.704e-06/0.2903, allocations: 0 / 366.1 MB, free: 3.727 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009868/0.2913, allocations: 427.3 kB / 366.5 MB, free: 3.285 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002529/0.2938, allocations: 0.6307 MB / 367.1 MB, free: 2.652 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006566/0.3004, allocations: 4.412 MB / 371.5 MB, free: 14.18 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001232/0.3016, allocations: 1.113 MB / 372.6 MB, free: 13.04 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0009784/0.3026, allocations: 357.2 kB / 373 MB, free: 12.68 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000267/0.3028, allocations: 148.5 kB / 373.1 MB, free: 12.54 MB / 330.7 MB Notification: Performance of SimCode: time 1.273e-06/0.3028, allocations: 0 / 373.1 MB, free: 12.54 MB / 330.7 MB Notification: Performance of Templates: time 0.06085/0.3637, allocations: 32.41 MB / 405.5 MB, free: 12.66 MB / 362.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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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: 5.461877405992709]