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.001849/0.001849, allocations: 96.03 kB / 21.18 MB, free: 0.5312 MB / 14.72 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.002161/0.002161, allocations: 185 kB / 24.46 MB, free: 3.863 MB / 14.72 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.473/1.473, allocations: 225.7 MB / 253.3 MB, free: 12.85 MB / 206.1 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 0.001618/0.001618, allocations: 47.92 kB / 371.6 MB, free: 9.305 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3034/0.3051, allocations: 52.18 MB / 423.8 MB, free: 14.53 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.0241/0.3292, allocations: 22.23 MB / 446 MB, free: 8.207 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.03042/0.3596, allocations: 19.52 MB / 465.6 MB, free: 4.605 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006175/0.3658, allocations: 269.1 kB / 465.8 MB, free: 4.34 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005827/0.3716, allocations: 1.676 MB / 467.5 MB, free: 2.656 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01391/0.3855, allocations: 3.302 MB / 470.8 MB, free: 15.32 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006407/0.3919, allocations: 1.613 MB / 472.4 MB, free: 13.71 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.02137/0.4133, allocations: 12.75 MB / 485.2 MB, free: 0.9219 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001596/0.4149, allocations: 0.4926 MB / 485.7 MB, free: 404 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00419/0.4191, allocations: 2.197 MB / 487.9 MB, free: 14.19 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004029/0.4231, allocations: 2.025 MB / 489.9 MB, free: 12.15 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007354/0.4238, allocations: 136 kB / 490 MB, free: 12.02 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005389/0.4292, allocations: 1.249 MB / 491.3 MB, free: 10.77 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001023/0.4302, allocations: 0.6088 MB / 491.9 MB, free: 10.15 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003796/0.434, allocations: 1.925 MB / 493.8 MB, free: 8.215 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01244/0.4465, allocations: 6.738 MB / 0.4888 GB, free: 1.445 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.561e-06/0.4465, allocations: 0 / 0.4888 GB, free: 1.445 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.4465, allocations: 4 kB / 0.4888 GB, free: 1.441 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002463/0.4467, allocations: 0 / 0.4888 GB, free: 1.441 MB / 398.1 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.0123/0.459, allocations: 6.859 MB / 0.4955 GB, free: 10.5 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.836e-05/0.4591, allocations: 8.031 kB / 0.4955 GB, free: 10.49 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001412/0.4605, allocations: 0.7764 MB / 0.4963 GB, free: 9.707 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009852/0.4703, allocations: 4.375 MB / 0.5006 GB, free: 5.211 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.454e-05/0.4704, allocations: 66 kB / 0.5006 GB, free: 5.145 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00028/0.4707, allocations: 95.95 kB / 0.5007 GB, free: 5.051 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00251/0.4732, allocations: 1.316 MB / 0.502 GB, free: 3.719 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.418e-05/0.4732, allocations: 0 / 0.502 GB, free: 3.719 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001159/0.4734, allocations: 36 kB / 0.502 GB, free: 3.684 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.499e-05/0.4734, allocations: 39.97 kB / 0.5021 GB, free: 3.645 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00277/0.4762, allocations: 1.484 MB / 0.5035 GB, free: 2.16 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01128/0.4874, allocations: 5.124 MB / 0.5085 GB, free: 12.98 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00185/0.4893, allocations: 0.8756 MB / 0.5094 GB, free: 12.09 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001738/0.491, allocations: 1.063 MB / 0.5104 GB, free: 11.03 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2543/0.7454, allocations: 26.99 MB / 0.5368 GB, free: 76.67 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001175/0.7465, allocations: 0.5592 MB / 0.5373 GB, free: 76.62 MB / 446.1 MB Notification: Performance of pre-optimization done (n=85): time 3.607e-06/0.7465, allocations: 0 / 0.5373 GB, free: 76.62 MB / 446.1 MB Notification: Performance of matching and sorting (n=85): time 0.003272/0.7498, allocations: 1.913 MB / 0.5392 GB, free: 76.56 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.203e-05/0.7499, allocations: 60.72 kB / 0.5392 GB, free: 76.5 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005779/0.7556, allocations: 5.634 MB / 0.5447 GB, free: 76.05 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000129/0.7558, allocations: 37.52 kB / 0.5448 GB, free: 76.02 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001744/0.7575, allocations: 2.962 MB / 0.5477 GB, free: 75.53 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002504/0.7578, allocations: 322 kB / 0.548 GB, free: 75.33 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004005/0.7582, allocations: 428.7 kB / 0.5484 GB, free: 75.15 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.594e-05/0.7582, allocations: 306.6 kB / 0.5487 GB, free: 74.85 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007351/0.7589, allocations: 403.4 kB / 0.5491 GB, free: 74.74 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009134/0.7599, allocations: 1.091 MB / 0.5501 GB, free: 73.71 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001717/0.7616, allocations: 1.606 MB / 0.5517 GB, free: 72.52 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.154e-05/0.7616, allocations: 5.719 kB / 0.5517 GB, free: 72.52 MB / 446.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.003085/0.7647, allocations: 2.245 MB / 0.5539 GB, free: 71.75 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.773e-05/0.7647, allocations: 14.41 kB / 0.5539 GB, free: 71.75 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001748/0.7649, allocations: 161.4 kB / 0.5541 GB, free: 71.74 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.993e-05/0.7649, allocations: 33.47 kB / 0.5541 GB, free: 71.74 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001068/0.766, allocations: 363.5 kB / 0.5544 GB, free: 71.73 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.009e-05/0.766, allocations: 51.66 kB / 0.5545 GB, free: 71.73 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001774/0.7678, allocations: 186 kB / 0.5547 GB, free: 71.66 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001543/0.7679, allocations: 122.9 kB / 0.5548 GB, free: 71.64 MB / 446.1 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.001122/0.7691, allocations: 0.7163 MB / 0.5555 GB, free: 71.21 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000624/0.7697, allocations: 0.7478 MB / 0.5562 GB, free: 70.8 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003803/0.7735, allocations: 2.149 MB / 0.5583 GB, free: 70.04 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.388e-06/0.7735, allocations: 10.17 kB / 0.5583 GB, free: 70.04 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/0.7735, allocations: 4.562 kB / 0.5583 GB, free: 70.04 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.173e-06/0.7735, allocations: 7.25 kB / 0.5583 GB, free: 70.04 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004818/0.7783, allocations: 3.356 MB / 0.5616 GB, free: 68.72 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001583/0.7785, allocations: 146.3 kB / 0.5617 GB, free: 68.71 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007134/0.7792, allocations: 152.1 kB / 0.5619 GB, free: 68.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.025e-06/0.7792, allocations: 7.5 kB / 0.5619 GB, free: 68.7 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.844e-05/0.7793, allocations: 59.02 kB / 0.562 GB, free: 68.69 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5e-06/0.7793, allocations: 3.312 kB / 0.562 GB, free: 68.69 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.7793, allocations: 0 / 0.562 GB, free: 68.69 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002853/0.7821, allocations: 2.196 MB / 0.5641 GB, free: 66.97 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001607/0.7837, allocations: 0.7893 MB / 0.5649 GB, free: 66.24 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005782/0.7843, allocations: 16 kB / 0.5649 GB, free: 66.23 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001118/0.7854, allocations: 35.39 kB / 0.5649 GB, free: 66.2 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001828/0.7856, allocations: 99.19 kB / 0.565 GB, free: 66.13 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001001/0.7857, allocations: 68 kB / 0.5651 GB, free: 66.07 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004012/0.7897, allocations: 3.605 MB / 0.5686 GB, free: 63.12 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.7897, allocations: 4 kB / 0.5686 GB, free: 63.12 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002105/0.7918, allocations: 1.081 MB / 0.5697 GB, free: 62.12 MB / 446.1 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.001319/0.7932, allocations: 1.177 MB / 0.5708 GB, free: 61.29 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002064/0.7952, allocations: 1.371 MB / 0.5721 GB, free: 60.06 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.7952, allocations: 1.969 kB / 0.5722 GB, free: 60.06 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000884/0.7961, allocations: 0.732 MB / 0.5729 GB, free: 59.34 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004498/0.8006, allocations: 1.181 MB / 0.574 GB, free: 58.3 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00922/0.8098, allocations: 8.369 MB / 0.5822 GB, free: 50.18 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001254/0.8111, allocations: 2.104 MB / 0.5842 GB, free: 48.04 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005816/0.8117, allocations: 291.4 kB / 0.5845 GB, free: 47.77 MB / 446.1 MB Notification: Performance of SimCode: time 1.834e-06/0.8117, allocations: 0 / 0.5845 GB, free: 47.77 MB / 446.1 MB Notification: Performance of Templates: time 0.09299/0.9047, allocations: 73.72 MB / 0.6565 GB, free: 6.441 MB / 478.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/FourInverters/FourInverters.csv","/var/lib/jenkins1/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: 14.532046598382294]