Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001493/0.001493, allocations: 96.25 kB / 20.96 MB, free: 3.469 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001537/0.001537, allocations: 156.9 kB / 24.27 MB, free: 172 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.488/1.488, allocations: 177 MB / 204.4 MB, free: 5.602 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.512e-06/1.512e-06, allocations: 0 / 272.2 MB, free: 1.805 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.956e-05/3.107e-05, allocations: 9.266 kB / 272.2 MB, free: 1.797 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01646/0.01649, allocations: 12.41 MB / 284.6 MB, free: 5.332 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1667/0.1832, allocations: 17.9 MB / 302.5 MB, free: 12.19 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002665/0.1859, allocations: 137.1 kB / 302.6 MB, free: 12.09 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003511/0.1894, allocations: 1.138 MB / 303.8 MB, free: 11.56 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008143/0.1975, allocations: 2.427 MB / 306.2 MB, free: 10.06 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007399/0.2049, allocations: 1.46 MB / 307.7 MB, free: 9.273 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.01009/0.215, allocations: 6.768 MB / 314.4 MB, free: 5.969 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007692/0.2158, allocations: 271 kB / 314.7 MB, free: 5.789 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002208/0.218, allocations: 1.562 MB / 316.3 MB, free: 4.816 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000896/0.2189, allocations: 0.794 MB / 317 MB, free: 4.02 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00015/0.219, allocations: 72 kB / 317.1 MB, free: 3.949 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004162/0.2232, allocations: 1.213 MB / 318.3 MB, free: 2.734 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002727/0.2235, allocations: 333.5 kB / 318.7 MB, free: 2.406 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001122/0.2246, allocations: 0.7399 MB / 319.4 MB, free: 1.664 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005826/0.2304, allocations: 3.756 MB / 323.2 MB, free: 13.89 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.975e-06/0.2304, allocations: 3.984 kB / 323.2 MB, free: 13.89 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.083e-06/0.2304, allocations: 0 / 323.2 MB, free: 13.89 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001102/0.2305, allocations: 0 / 323.2 MB, free: 13.89 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.007359/0.2379, allocations: 3.689 MB / 326.8 MB, free: 10.14 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.899e-05/0.238, allocations: 11.98 kB / 326.9 MB, free: 10.13 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007287/0.2387, allocations: 457.4 kB / 327.3 MB, free: 9.684 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004488/0.2432, allocations: 2.584 MB / 329.9 MB, free: 7.004 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.703e-05/0.2432, allocations: 40.98 kB / 329.9 MB, free: 6.961 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001617/0.2434, allocations: 51.95 kB / 330 MB, free: 6.91 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001814/0.2452, allocations: 0.7265 MB / 330.7 MB, free: 6.176 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.209e-05/0.2452, allocations: 0 / 330.7 MB, free: 6.176 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.116e-05/0.2453, allocations: 27.94 kB / 330.7 MB, free: 6.148 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.481e-05/0.2454, allocations: 23.98 kB / 330.8 MB, free: 6.125 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00217/0.2475, allocations: 0.8163 MB / 331.6 MB, free: 5.312 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006398/0.2539, allocations: 2.755 MB / 334.3 MB, free: 2.5 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00132/0.2552, allocations: 0.528 MB / 334.9 MB, free: 1.961 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00108/0.2563, allocations: 0.57 MB / 335.4 MB, free: 1.391 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02972/0.286, allocations: 15.23 MB / 350.7 MB, free: 1.777 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008595/0.2869, allocations: 358 kB / 351 MB, free: 1.414 MB / 298.7 MB Notification: Performance of pre-optimization done (n=49): time 3.056e-06/0.2869, allocations: 3.938 kB / 351 MB, free: 1.41 MB / 298.7 MB Notification: Performance of matching and sorting (n=49): time 0.00292/0.2898, allocations: 1.127 MB / 352.1 MB, free: 280 kB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.106e-05/0.2899, allocations: 59.41 kB / 352.2 MB, free: 208 kB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005033/0.2949, allocations: 2.958 MB / 355.1 MB, free: 13.23 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001226/0.2951, allocations: 37.7 kB / 355.2 MB, free: 13.19 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001632/0.2967, allocations: 1.498 MB / 356.7 MB, free: 11.68 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002564/0.2969, allocations: 170.6 kB / 356.9 MB, free: 11.52 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003601/0.2973, allocations: 222.4 kB / 357.1 MB, free: 11.29 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001976/0.2975, allocations: 337.9 kB / 357.4 MB, free: 10.96 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006727/0.2982, allocations: 241.9 kB / 357.6 MB, free: 10.72 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001002/0.2992, allocations: 0.6056 MB / 358.2 MB, free: 9.934 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001711/0.3009, allocations: 0.8984 MB / 359.1 MB, free: 8.863 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.543e-06/0.3009, allocations: 0 / 359.1 MB, free: 8.863 MB / 314.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.00293/0.3038, allocations: 1.289 MB / 360.4 MB, free: 7.57 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.454e-05/0.3038, allocations: 8 kB / 360.4 MB, free: 7.562 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001241/0.304, allocations: 83.98 kB / 360.5 MB, free: 7.48 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.063e-05/0.304, allocations: 20 kB / 360.5 MB, free: 7.461 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007767/0.3048, allocations: 195.7 kB / 360.7 MB, free: 7.27 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.448e-05/0.3048, allocations: 27.81 kB / 360.8 MB, free: 7.242 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00113/0.306, allocations: 123.4 kB / 360.9 MB, free: 7.121 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001218/0.3061, allocations: 67.94 kB / 360.9 MB, free: 7.055 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.0008706/0.3069, allocations: 429.5 kB / 361.4 MB, free: 6.625 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006048/0.3076, allocations: 413.5 kB / 361.8 MB, free: 6.219 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002975/0.3105, allocations: 1.194 MB / 363 MB, free: 5.023 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.335e-05/0.3105, allocations: 7.984 kB / 363 MB, free: 5.016 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/0.3105, allocations: 0 / 363 MB, free: 5.016 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.123e-06/0.3106, allocations: 3.938 kB / 363 MB, free: 5.012 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004038/0.3146, allocations: 1.936 MB / 364.9 MB, free: 3.031 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001214/0.3147, allocations: 71.98 kB / 365 MB, free: 2.961 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005137/0.3152, allocations: 91.86 kB / 365.1 MB, free: 2.871 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.797e-06/0.3152, allocations: 4 kB / 365.1 MB, free: 2.867 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.635e-05/0.3153, allocations: 36.06 kB / 365.1 MB, free: 2.832 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.165e-05/0.3153, allocations: 12.8 kB / 365.1 MB, free: 2.82 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/0.3153, allocations: 0 / 365.1 MB, free: 2.82 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002746/0.3181, allocations: 1.324 MB / 366.4 MB, free: 1.465 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000915/0.319, allocations: 439.1 kB / 366.9 MB, free: 1.035 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005507/0.3195, allocations: 11.98 kB / 366.9 MB, free: 1.023 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007193/0.3202, allocations: 31.91 kB / 366.9 MB, free: 0.9922 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001788/0.3204, allocations: 59.92 kB / 367 MB, free: 0.9336 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.369e-05/0.3205, allocations: 37.19 kB / 367 MB, free: 0.8984 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.003047/0.3236, allocations: 1.919 MB / 368.9 MB, free: 14.98 MB / 330.7 MB Notification: Performance of sort global known variables: time 8e-08/0.3236, allocations: 0 / 368.9 MB, free: 14.98 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001531/0.3251, allocations: 0.5814 MB / 369.5 MB, free: 14.39 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.001361/0.3264, allocations: 0.8305 MB / 370.3 MB, free: 13.56 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.00182/0.3283, allocations: 0.78 MB / 371.1 MB, free: 12.75 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 8.435e-06/0.3283, allocations: 4 kB / 371.1 MB, free: 12.75 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008624/0.3291, allocations: 423.6 kB / 371.5 MB, free: 12.31 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002721/0.3319, allocations: 0.6337 MB / 372.2 MB, free: 11.69 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007644/0.3395, allocations: 4.395 MB / 376.6 MB, free: 7.227 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001275/0.3408, allocations: 1.109 MB / 377.7 MB, free: 6.086 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.00125/0.342, allocations: 361.1 kB / 378 MB, free: 5.727 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002899/0.3423, allocations: 156.5 kB / 378.2 MB, free: 5.574 MB / 330.7 MB Notification: Performance of SimCode: time 1.563e-06/0.3423, allocations: 0 / 378.2 MB, free: 5.574 MB / 330.7 MB Notification: Performance of Templates: time 0.06286/0.4052, allocations: 32.44 MB / 410.6 MB, free: 5.629 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/InvertersApartRecord/InvertersApartRecord.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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.525223700911738]