Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.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.001149/0.001149, allocations: 83.62 kB / 21.43 MB, free: 3.133 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.005455/0.005455, allocations: 157.8 kB / 24.7 MB, free: 8.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8566/0.8566, allocations: 177.1 MB / 205 MB, free: 5.711 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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.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.1.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.1.0_Modelica.Electrical.Spice3.Examples.FourInverters") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.092e-06/1.092e-06, allocations: 0 / 325.8 MB, free: 15.43 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.789e-05/1.899e-05, allocations: 2.281 kB / 325.8 MB, free: 15.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.01302/0.01303, allocations: 22.26 MB / 348.1 MB, free: 9.078 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01838/0.03142, allocations: 19.55 MB / 367.6 MB, free: 5.445 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003886/0.0353, allocations: 269.1 kB / 367.9 MB, free: 5.18 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003332/0.03864, allocations: 1.691 MB / 369.6 MB, free: 3.477 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007207/0.04584, allocations: 3.426 MB / 373 MB, free: 24 kB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003396/0.04924, allocations: 1.632 MB / 374.6 MB, free: 14.39 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.01103/0.06027, allocations: 13.24 MB / 387.9 MB, free: 1.109 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008147/0.06108, allocations: 0.4924 MB / 388.4 MB, free: 0.582 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002971/0.06405, allocations: 2.992 MB / 391.4 MB, free: 13.58 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00117/0.06522, allocations: 1.495 MB / 392.9 MB, free: 12.08 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001676/0.06539, allocations: 136 kB / 393 MB, free: 11.95 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002359/0.06775, allocations: 1.272 MB / 394.3 MB, free: 10.68 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002968/0.06805, allocations: 0.601 MB / 394.9 MB, free: 10.07 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001321/0.06937, allocations: 1.402 MB / 396.3 MB, free: 8.664 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004631/0.074, allocations: 6.515 MB / 402.8 MB, free: 2.125 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.074, allocations: 0 / 402.8 MB, free: 2.125 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.552e-06/0.074, allocations: 0 / 402.8 MB, free: 2.125 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.768e-05/0.07406, allocations: 0 / 402.8 MB, free: 2.125 MB / 362.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.005449/0.07951, allocations: 6.785 MB / 409.6 MB, free: 11.26 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.986e-05/0.07955, allocations: 8.031 kB / 409.6 MB, free: 11.25 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007636/0.08031, allocations: 0.7764 MB / 410.4 MB, free: 10.47 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003874/0.08419, allocations: 4.379 MB / 414.7 MB, free: 5.973 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.722e-05/0.08423, allocations: 66 kB / 414.8 MB, free: 5.91 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001473/0.08437, allocations: 103.9 kB / 414.9 MB, free: 5.809 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001372/0.08575, allocations: 1.305 MB / 416.2 MB, free: 4.484 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.749e-05/0.08576, allocations: 0 / 416.2 MB, free: 4.484 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.788e-05/0.08584, allocations: 39.94 kB / 416.2 MB, free: 4.445 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.324e-05/0.08586, allocations: 39.97 kB / 416.3 MB, free: 4.406 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001755/0.08762, allocations: 1.484 MB / 417.8 MB, free: 2.918 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005925/0.09354, allocations: 5.121 MB / 422.9 MB, free: 13.73 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001018/0.09456, allocations: 0.8797 MB / 423.8 MB, free: 12.84 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001295/0.09586, allocations: 1.06 MB / 424.8 MB, free: 11.78 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2013/0.2972, allocations: 27.06 MB / 451.9 MB, free: 118.4 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001089/0.2983, allocations: 0.5507 MB / 452.4 MB, free: 118.3 MB / 410.7 MB Notification: Performance of pre-optimization done (n=85): time 3.857e-06/0.2983, allocations: 4.328 kB / 452.4 MB, free: 118.3 MB / 410.7 MB Notification: Performance of matching and sorting (n=85): time 0.003285/0.3016, allocations: 1.913 MB / 454.3 MB, free: 118.3 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.202e-05/0.3016, allocations: 64.19 kB / 454.4 MB, free: 118.2 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004516/0.3061, allocations: 5.63 MB / 460 MB, free: 116.4 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.964e-05/0.3062, allocations: 41.58 kB / 460.1 MB, free: 116.4 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001253/0.3074, allocations: 2.965 MB / 463 MB, free: 114 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001424/0.3076, allocations: 303.2 kB / 463.3 MB, free: 113.8 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002843/0.3078, allocations: 417.9 kB / 463.7 MB, free: 113.4 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.996e-05/0.3079, allocations: 308.9 kB / 464.1 MB, free: 113.1 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000431/0.3083, allocations: 403.5 kB / 464.4 MB, free: 112.7 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006059/0.3089, allocations: 1.085 MB / 465.5 MB, free: 111.3 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001128/0.31, allocations: 1.612 MB / 467.1 MB, free: 109.4 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.049e-05/0.3101, allocations: 8 kB / 467.1 MB, free: 109.4 MB / 410.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.001755/0.3118, allocations: 2.241 MB / 469.4 MB, free: 107.2 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.889e-05/0.3118, allocations: 15.56 kB / 469.4 MB, free: 107.2 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.81e-05/0.3119, allocations: 164 kB / 469.6 MB, free: 107 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.849e-05/0.312, allocations: 32 kB / 469.6 MB, free: 107 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005768/0.3125, allocations: 363.2 kB / 470 MB, free: 106.6 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.29e-05/0.3126, allocations: 47.8 kB / 470 MB, free: 106.6 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009506/0.3135, allocations: 197.9 kB / 470.2 MB, free: 106.4 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001191/0.3136, allocations: 124 kB / 470.3 MB, free: 106.3 MB / 410.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.0007199/0.3144, allocations: 0.7203 MB / 471 MB, free: 105.6 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003071/0.3147, allocations: 0.7453 MB / 471.8 MB, free: 104.8 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002225/0.3169, allocations: 2.151 MB / 473.9 MB, free: 102.8 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.644e-06/0.3169, allocations: 8 kB / 473.9 MB, free: 102.8 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.462e-06/0.3169, allocations: 0 / 473.9 MB, free: 102.8 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.063e-06/0.3169, allocations: 3.984 kB / 473.9 MB, free: 102.8 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002804/0.3197, allocations: 3.359 MB / 477.3 MB, free: 99.46 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.35e-05/0.3198, allocations: 140 kB / 477.4 MB, free: 99.32 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003667/0.3202, allocations: 155.8 kB / 477.6 MB, free: 99.17 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.42e-06/0.3202, allocations: 4 kB / 477.6 MB, free: 99.16 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.975e-05/0.3202, allocations: 63.98 kB / 477.7 MB, free: 99.1 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.427e-06/0.3202, allocations: 3.281 kB / 477.7 MB, free: 99.1 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.3202, allocations: 4 kB / 477.7 MB, free: 99.1 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001677/0.3219, allocations: 2.188 MB / 479.9 MB, free: 96.88 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006553/0.3226, allocations: 0.7742 MB / 480.6 MB, free: 96.11 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002568/0.3228, allocations: 23.98 kB / 480.6 MB, free: 96.09 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005591/0.3234, allocations: 27.97 kB / 480.7 MB, free: 96.06 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001443/0.3235, allocations: 108.5 kB / 480.8 MB, free: 95.95 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.487e-05/0.3236, allocations: 72 kB / 480.9 MB, free: 95.88 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002363/0.3259, allocations: 3.604 MB / 484.5 MB, free: 92.31 MB / 410.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3259, allocations: 0 / 484.5 MB, free: 92.31 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001339/0.3273, allocations: 1.086 MB / 485.5 MB, free: 91.29 MB / 410.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.001054/0.3283, allocations: 1.278 MB / 486.8 MB, free: 90.24 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001188/0.3295, allocations: 1.359 MB / 488.2 MB, free: 88.84 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.3295, allocations: 0 / 488.2 MB, free: 88.84 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005289/0.3301, allocations: 0.7438 MB / 488.9 MB, free: 88.04 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002334/0.3324, allocations: 1.181 MB / 490.1 MB, free: 86.87 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005512/0.3379, allocations: 8.23 MB / 498.3 MB, free: 78.61 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008976/0.3388, allocations: 2.102 MB / 0.4887 GB, free: 76.47 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002345/0.339, allocations: 292.5 kB / 0.489 GB, free: 76.18 MB / 410.7 MB Notification: Performance of SimCode: time 7.61e-07/0.339, allocations: 0 / 0.489 GB, free: 76.18 MB / 410.7 MB Notification: Performance of Templates: time 0.05828/0.3973, allocations: 73.67 MB / 0.5609 GB, free: 2.82 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.sim & ./Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/FourInverters/FourInverters.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 12.640977096743882]