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.001842/0.001842, allocations: 99.86 kB / 20.96 MB, free: 3.453 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.001809/0.001809, allocations: 145.1 kB / 24.26 MB, free: 164 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.537/1.537, allocations: 173.4 MB / 200.8 MB, free: 9.324 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.383e-06/1.383e-06, allocations: 0 / 267.3 MB, free: 6.766 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.038e-05/3.176e-05, allocations: 2.312 kB / 267.3 MB, free: 6.762 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.02145/0.02149, allocations: 13.98 MB / 281.3 MB, free: 8.723 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1492/0.1707, allocations: 19.7 MB / 301 MB, free: 13.91 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002714/0.1734, allocations: 136 kB / 301.1 MB, free: 13.88 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003371/0.1768, allocations: 1.143 MB / 302.3 MB, free: 13.41 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007929/0.1847, allocations: 2.421 MB / 304.7 MB, free: 12.47 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005723/0.1904, allocations: 1.451 MB / 306.1 MB, free: 12.07 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00996/0.2004, allocations: 6.698 MB / 312.8 MB, free: 9.266 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007586/0.2011, allocations: 265.2 kB / 313.1 MB, free: 9.098 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002329/0.2035, allocations: 1.566 MB / 314.7 MB, free: 8.328 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001003/0.2045, allocations: 0.7934 MB / 315.4 MB, free: 8.02 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002058/0.2047, allocations: 77.47 kB / 315.5 MB, free: 8.02 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003875/0.2085, allocations: 1.201 MB / 316.7 MB, free: 7.484 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002889/0.2088, allocations: 331.6 kB / 317 MB, free: 7.172 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001182/0.21, allocations: 0.7439 MB / 317.8 MB, free: 6.441 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003992/0.214, allocations: 3.764 MB / 321.6 MB, free: 2.977 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.214, allocations: 3.984 kB / 321.6 MB, free: 2.973 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.272e-06/0.214, allocations: 0 / 321.6 MB, free: 2.973 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.326e-05/0.2141, allocations: 0 / 321.6 MB, free: 2.973 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.005023/0.2191, allocations: 4.064 MB / 325.6 MB, free: 14.84 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.174e-05/0.2191, allocations: 8.922 kB / 325.6 MB, free: 14.84 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000643/0.2198, allocations: 457.4 kB / 326.1 MB, free: 14.39 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004183/0.2239, allocations: 2.591 MB / 328.7 MB, free: 11.79 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.363e-05/0.224, allocations: 37 kB / 328.7 MB, free: 11.75 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001491/0.2241, allocations: 60.64 kB / 328.8 MB, free: 11.69 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001348/0.2255, allocations: 0.6367 MB / 329.4 MB, free: 11.04 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.618e-05/0.2255, allocations: 0 / 329.4 MB, free: 11.04 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.193e-05/0.2256, allocations: 20 kB / 329.4 MB, free: 11.02 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.948e-05/0.2256, allocations: 23.73 kB / 329.4 MB, free: 11 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001528/0.2271, allocations: 0.7109 MB / 330.2 MB, free: 10.29 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006894/0.234, allocations: 3.338 MB / 333.5 MB, free: 6.926 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001079/0.2351, allocations: 445.5 kB / 333.9 MB, free: 6.48 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009456/0.236, allocations: 493.7 kB / 334.4 MB, free: 5.992 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03046/0.2665, allocations: 15.36 MB / 349.8 MB, free: 6.312 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007452/0.2673, allocations: 351.7 kB / 350.1 MB, free: 5.957 MB / 298.7 MB Notification: Performance of pre-optimization done (n=49): time 1.753e-06/0.2673, allocations: 4 kB / 350.1 MB, free: 5.953 MB / 298.7 MB Notification: Performance of matching and sorting (n=49): time 0.002382/0.2696, allocations: 1.063 MB / 351.2 MB, free: 4.883 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.274e-05/0.2697, allocations: 59.41 kB / 351.2 MB, free: 4.812 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00579/0.2755, allocations: 3.935 MB / 355.2 MB, free: 0.8477 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001277/0.2756, allocations: 41.69 kB / 355.2 MB, free: 0.8008 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002012/0.2776, allocations: 1.808 MB / 357 MB, free: 15 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002587/0.2779, allocations: 178.6 kB / 357.2 MB, free: 14.82 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003794/0.2783, allocations: 256 kB / 357.4 MB, free: 14.56 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0003037/0.2786, allocations: 0.5238 MB / 358 MB, free: 14.03 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005594/0.2791, allocations: 217.9 kB / 358.2 MB, free: 13.82 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001054/0.2802, allocations: 0.7526 MB / 358.9 MB, free: 12.82 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00179/0.282, allocations: 1.045 MB / 360 MB, free: 11.54 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.029e-05/0.282, allocations: 4 kB / 360 MB, free: 11.54 MB / 314.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002629/0.2846, allocations: 1.244 MB / 361.2 MB, free: 10.29 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.946e-05/0.2846, allocations: 12.62 kB / 361.2 MB, free: 10.27 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001306/0.2848, allocations: 83.98 kB / 361.3 MB, free: 10.19 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.675e-05/0.2848, allocations: 16 kB / 361.3 MB, free: 10.18 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007459/0.2855, allocations: 199.7 kB / 361.5 MB, free: 9.98 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.319e-05/0.2856, allocations: 27.86 kB / 361.6 MB, free: 9.953 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009841/0.2866, allocations: 103.6 kB / 361.7 MB, free: 9.852 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001177/0.2867, allocations: 68 kB / 361.7 MB, free: 9.785 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.0009111/0.2876, allocations: 476.2 kB / 362.2 MB, free: 9.309 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005717/0.2882, allocations: 417.5 kB / 362.6 MB, free: 8.898 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002758/0.2909, allocations: 1.158 MB / 363.8 MB, free: 7.742 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.239e-05/0.2909, allocations: 8 kB / 363.8 MB, free: 7.734 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.608e-06/0.2909, allocations: 3.938 kB / 363.8 MB, free: 7.73 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.919e-06/0.291, allocations: 7.922 kB / 363.8 MB, free: 7.723 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004439/0.2954, allocations: 2.535 MB / 366.3 MB, free: 5.129 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001061/0.2955, allocations: 68 kB / 366.4 MB, free: 5.062 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004662/0.296, allocations: 88.69 kB / 366.5 MB, free: 4.977 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.873e-06/0.296, allocations: 3.984 kB / 366.5 MB, free: 4.973 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.727e-05/0.296, allocations: 32 kB / 366.5 MB, free: 4.941 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.192e-06/0.296, allocations: 7.938 kB / 366.5 MB, free: 4.934 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.296, allocations: 0 / 366.5 MB, free: 4.934 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002492/0.2985, allocations: 1.329 MB / 367.8 MB, free: 3.57 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001063/0.2996, allocations: 443.1 kB / 368.3 MB, free: 3.137 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002956/0.2999, allocations: 12.86 kB / 368.3 MB, free: 3.125 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006288/0.3005, allocations: 31.86 kB / 368.3 MB, free: 3.094 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001795/0.3007, allocations: 59.92 kB / 368.4 MB, free: 3.035 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.817e-05/0.3008, allocations: 36 kB / 368.4 MB, free: 3 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.003422/0.3042, allocations: 2.22 MB / 370.6 MB, free: 0.7812 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.3042, allocations: 0 / 370.6 MB, free: 0.7812 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001473/0.3057, allocations: 0.5852 MB / 371.2 MB, free: 200 kB / 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.001392/0.3071, allocations: 0.8379 MB / 372.1 MB, free: 15.35 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001653/0.3087, allocations: 0.7966 MB / 372.8 MB, free: 14.52 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.3087, allocations: 0 / 372.8 MB, free: 14.52 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007645/0.3095, allocations: 440.4 kB / 373.3 MB, free: 14.06 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00284/0.3123, allocations: 0.632 MB / 373.9 MB, free: 13.43 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00696/0.3193, allocations: 4.398 MB / 378.3 MB, free: 8.961 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001211/0.3205, allocations: 1.109 MB / 379.4 MB, free: 7.82 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.001124/0.3216, allocations: 361.1 kB / 379.8 MB, free: 7.461 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002542/0.3219, allocations: 148.5 kB / 379.9 MB, free: 7.316 MB / 330.7 MB Notification: Performance of SimCode: time 1.713e-06/0.3219, allocations: 4 kB / 379.9 MB, free: 7.312 MB / 330.7 MB Notification: Performance of Templates: time 0.06291/0.3848, allocations: 32.41 MB / 412.3 MB, free: 7.41 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=240 -emit_protected -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","/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.644266520044766]