Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.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.001608/0.001608, 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.001511/0.001511, 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.49/1.49, allocations: 173.4 MB / 200.8 MB, free: 9.305 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.FourInverters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|mp1.S.v|mp2.S.v|mp3.S.v|mp4.S.v|v.p.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters") translateModel(Modelica.Electrical.Spice3.Examples.FourInverters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|mp1.S.v|mp2.S.v|mp3.S.v|mp4.S.v|v.p.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.843e-06/1.843e-06, allocations: 0 / 267.3 MB, free: 6.738 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.377e-05/2.561e-05, allocations: 5.828 kB / 267.3 MB, free: 6.734 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.02691/0.02694, allocations: 22.25 MB / 289.6 MB, free: 404 kB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1358/0.1627, allocations: 19.52 MB / 309.1 MB, free: 9.012 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004606/0.1673, allocations: 268.2 kB / 309.3 MB, free: 8.828 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004647/0.172, allocations: 1.683 MB / 311 MB, free: 7.969 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01163/0.1836, allocations: 3.435 MB / 314.5 MB, free: 5.207 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007516/0.1911, allocations: 1.637 MB / 316.1 MB, free: 3.938 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.01965/0.2108, allocations: 13.07 MB / 329.2 MB, free: 10.11 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001702/0.2125, allocations: 0.4964 MB / 329.7 MB, free: 9.574 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006838/0.2193, allocations: 2.984 MB / 332.7 MB, free: 6.582 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003749/0.2231, allocations: 1.494 MB / 334.1 MB, free: 5.082 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004922/0.2236, allocations: 136 kB / 334.3 MB, free: 4.949 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005315/0.2289, allocations: 1.264 MB / 335.5 MB, free: 3.684 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008544/0.2297, allocations: 0.6048 MB / 336.1 MB, free: 3.074 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003856/0.2336, allocations: 1.406 MB / 337.6 MB, free: 1.664 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01198/0.2456, allocations: 6.503 MB / 344.1 MB, free: 11.14 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.2456, allocations: 4 kB / 344.1 MB, free: 11.13 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.292e-06/0.2456, allocations: 0 / 344.1 MB, free: 11.13 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0002269/0.2458, allocations: 0 / 344.1 MB, free: 11.13 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 288 * Number of variables: 288 Notification: Performance of Generate backend data structure: time 0.01261/0.2584, allocations: 6.781 MB / 350.8 MB, free: 4.273 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.587e-05/0.2585, allocations: 12.92 kB / 350.9 MB, free: 4.262 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001466/0.2599, allocations: 0.8467 MB / 351.7 MB, free: 3.41 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009169/0.2691, allocations: 4.965 MB / 356.7 MB, free: 14.32 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.796e-05/0.2692, allocations: 69.94 kB / 356.7 MB, free: 14.25 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002897/0.2695, allocations: 99.91 kB / 356.8 MB, free: 14.15 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002727/0.2722, allocations: 1.309 MB / 358.1 MB, free: 12.83 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.24e-05/0.2722, allocations: 4 kB / 358.1 MB, free: 12.82 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001402/0.2723, allocations: 35.94 kB / 358.2 MB, free: 12.79 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.07e-05/0.2724, allocations: 39.97 kB / 358.2 MB, free: 12.75 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002972/0.2754, allocations: 1.488 MB / 359.7 MB, free: 11.26 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01153/0.2869, allocations: 5.152 MB / 364.9 MB, free: 6.047 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001973/0.2889, allocations: 0.8727 MB / 365.7 MB, free: 5.164 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001843/0.2907, allocations: 1.06 MB / 366.8 MB, free: 4.098 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05823/0.349, allocations: 30.01 MB / 396.8 MB, free: 5.336 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001215/0.3502, allocations: 0.5528 MB / 397.4 MB, free: 4.773 MB / 346.7 MB Notification: Performance of pre-optimization done (n=85): time 3.096e-06/0.3502, allocations: 3.938 kB / 397.4 MB, free: 4.77 MB / 346.7 MB Notification: Performance of matching and sorting (n=85): time 0.00457/0.3547, allocations: 1.927 MB / 399.3 MB, free: 2.832 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.281e-05/0.3548, allocations: 68.06 kB / 399.4 MB, free: 2.754 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009666/0.3645, allocations: 5.629 MB / 405 MB, free: 13.15 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002381/0.3647, allocations: 41.7 kB / 405 MB, free: 13.11 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003531/0.3682, allocations: 2.957 MB / 408 MB, free: 10.14 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005738/0.3688, allocations: 313.3 kB / 408.3 MB, free: 9.828 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007154/0.3695, allocations: 415 kB / 408.7 MB, free: 9.418 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000174/0.3697, allocations: 309.1 kB / 409 MB, free: 9.113 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001004/0.3707, allocations: 407.7 kB / 409.4 MB, free: 8.715 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001698/0.3724, allocations: 1.079 MB / 410.5 MB, free: 7.305 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003095/0.3755, allocations: 1.615 MB / 412.1 MB, free: 5.355 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.672e-05/0.3755, allocations: 8 kB / 412.1 MB, free: 5.348 MB / 362.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.005026/0.3806, allocations: 2.319 MB / 414.4 MB, free: 3.02 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.737e-05/0.3806, allocations: 16 kB / 414.4 MB, free: 3.004 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002506/0.3808, allocations: 160 kB / 414.6 MB, free: 2.848 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.202e-05/0.3809, allocations: 36.72 kB / 414.6 MB, free: 2.812 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001336/0.3822, allocations: 359.4 kB / 415 MB, free: 2.461 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.549e-05/0.3823, allocations: 43.86 kB / 415 MB, free: 2.418 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002162/0.3844, allocations: 187.4 kB / 415.2 MB, free: 2.234 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002335/0.3847, allocations: 132 kB / 415.3 MB, free: 2.105 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 108 * 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 (184): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.00158/0.3863, allocations: 0.7121 MB / 416 MB, free: 1.383 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001352/0.3876, allocations: 0.7649 MB / 416.8 MB, free: 0.6133 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005522/0.3931, allocations: 2.159 MB / 419 MB, free: 14.45 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.134e-05/0.3931, allocations: 4 kB / 419 MB, free: 14.45 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.019e-06/0.3931, allocations: 4 kB / 419 MB, free: 14.45 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.977e-06/0.3932, allocations: 7.984 kB / 419 MB, free: 14.44 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006927/0.4001, allocations: 3.371 MB / 422.3 MB, free: 11.02 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002206/0.4003, allocations: 136 kB / 422.5 MB, free: 10.89 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008361/0.4011, allocations: 155.8 kB / 422.6 MB, free: 10.73 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.257e-06/0.4012, allocations: 4 kB / 422.6 MB, free: 10.73 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001217/0.4013, allocations: 55.98 kB / 422.7 MB, free: 10.68 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.943e-06/0.4013, allocations: 8.062 kB / 422.7 MB, free: 10.67 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.951e-06/0.4013, allocations: 3.938 kB / 422.7 MB, free: 10.66 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004681/0.406, allocations: 2.213 MB / 424.9 MB, free: 8.426 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001801/0.4078, allocations: 0.8132 MB / 425.7 MB, free: 7.598 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005945/0.4084, allocations: 16 kB / 425.7 MB, free: 7.582 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0012/0.4096, allocations: 35.95 kB / 425.8 MB, free: 7.547 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002794/0.4098, allocations: 100.5 kB / 425.9 MB, free: 7.449 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001522/0.41, allocations: 67.98 kB / 425.9 MB, free: 7.383 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.006326/0.4163, allocations: 3.612 MB / 429.6 MB, free: 3.801 MB / 378.7 MB Notification: Performance of sort global known variables: time 1e-07/0.4163, allocations: 4 kB / 429.6 MB, free: 3.797 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00354/0.4199, allocations: 1.081 MB / 430.6 MB, free: 2.715 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (c1.vinternal,c2.vinternal,c3.vinternal,c4.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 (70): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.003328/0.4232, allocations: 1.291 MB / 431.9 MB, free: 1.41 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.1084/0.5316, allocations: 1.368 MB / 433.3 MB, free: 131.3 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.614e-06/0.5316, allocations: 0 / 433.3 MB, free: 131.3 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001507/0.5331, allocations: 0.7359 MB / 434 MB, free: 131.1 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005235/0.5383, allocations: 1.228 MB / 435.3 MB, free: 131 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01108/0.5494, allocations: 8.306 MB / 443.6 MB, free: 126.9 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002034/0.5514, allocations: 2.114 MB / 445.7 MB, free: 126.6 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.00231/0.5537, allocations: 0.6843 MB / 446.4 MB, free: 126.4 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004154/0.5541, allocations: 285.1 kB / 446.6 MB, free: 126.4 MB / 378.7 MB Notification: Performance of SimCode: time 1.623e-06/0.5541, allocations: 0 / 446.6 MB, free: 126.4 MB / 378.7 MB Notification: Performance of Templates: time 0.08074/0.6349, allocations: 57.6 MB / 0.4924 GB, free: 74.08 MB / 378.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/FourInverters/FourInverters.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.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: 6.5771421500248834]