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.001506/0.001506, allocations: 108.6 kB / 21.18 MB, free: 0.7617 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.001647/0.001647, allocations: 189.3 kB / 24.48 MB, free: 4.164 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.422/1.422, allocations: 225.6 MB / 253.3 MB, free: 13.03 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.002353/0.002353, allocations: 47.92 kB / 371.7 MB, free: 9.453 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2602/0.2625, allocations: 52.19 MB / 423.9 MB, free: 14.69 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.02595/0.2885, allocations: 26.81 MB / 450.7 MB, free: 3.766 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02931/0.3178, allocations: 22.41 MB / 473.1 MB, free: 13.27 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004738/0.3225, allocations: 269.1 kB / 473.4 MB, free: 13 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005178/0.3277, allocations: 1.785 MB / 475.1 MB, free: 11.21 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01142/0.3391, allocations: 3.326 MB / 478.5 MB, free: 7.855 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005476/0.3446, allocations: 1.648 MB / 480.1 MB, free: 6.203 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.02077/0.3653, allocations: 12.75 MB / 492.9 MB, free: 9.414 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001345/0.3667, allocations: 0.5121 MB / 493.4 MB, free: 8.867 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003535/0.3702, allocations: 2.186 MB / 495.6 MB, free: 6.672 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003623/0.3738, allocations: 2.1 MB / 497.7 MB, free: 4.559 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004688/0.3743, allocations: 140 kB / 497.8 MB, free: 4.422 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005013/0.3793, allocations: 1.533 MB / 499.3 MB, free: 2.887 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008176/0.3801, allocations: 0.5971 MB / 499.9 MB, free: 2.285 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003563/0.3837, allocations: 2.624 MB / 0.4908 GB, free: 15.64 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01077/0.3945, allocations: 6.671 MB / 0.4973 GB, free: 8.941 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.843e-06/0.3945, allocations: 0 / 0.4973 GB, free: 8.941 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.3945, allocations: 0 / 0.4973 GB, free: 8.941 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.000277/0.3948, allocations: 0 / 0.4973 GB, free: 8.941 MB / 414.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.01145/0.4062, allocations: 6.855 MB / 0.504 GB, free: 2.004 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.433e-05/0.4063, allocations: 15.97 kB / 0.504 GB, free: 1.988 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001067/0.4073, allocations: 0.7803 MB / 0.5048 GB, free: 1.203 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008519/0.4159, allocations: 4.367 MB / 0.509 GB, free: 12.71 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.648e-05/0.4159, allocations: 66 kB / 0.5091 GB, free: 12.65 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002771/0.4162, allocations: 99.89 kB / 0.5092 GB, free: 12.55 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00233/0.4185, allocations: 1.313 MB / 0.5105 GB, free: 11.22 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.186e-05/0.4185, allocations: 0 / 0.5105 GB, free: 11.22 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001145/0.4187, allocations: 43.98 kB / 0.5105 GB, free: 11.18 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.333e-05/0.4187, allocations: 39.97 kB / 0.5106 GB, free: 11.14 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002559/0.4213, allocations: 1.492 MB / 0.512 GB, free: 9.648 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01134/0.4326, allocations: 5.556 MB / 0.5174 GB, free: 4.02 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001787/0.4344, allocations: 0.8757 MB / 0.5183 GB, free: 3.129 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00174/0.4361, allocations: 1.063 MB / 0.5193 GB, free: 2.062 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2447/0.6808, allocations: 27.09 MB / 0.5458 GB, free: 106.3 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008367/0.6817, allocations: 0.5611 MB / 0.5463 GB, free: 106 MB / 446.1 MB Notification: Performance of pre-optimization done (n=85): time 3.066e-06/0.6817, allocations: 0 / 0.5463 GB, free: 106 MB / 446.1 MB Notification: Performance of matching and sorting (n=85): time 0.002949/0.6846, allocations: 1.911 MB / 0.5482 GB, free: 105.5 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.32e-05/0.6847, allocations: 66.5 kB / 0.5483 GB, free: 105.4 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005637/0.6903, allocations: 5.587 MB / 0.5537 GB, free: 102.6 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001534/0.6904, allocations: 41.67 kB / 0.5538 GB, free: 102.5 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001742/0.6922, allocations: 2.966 MB / 0.5567 GB, free: 99.98 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003103/0.6925, allocations: 316.5 kB / 0.557 GB, free: 99.75 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004277/0.6929, allocations: 429.4 kB / 0.5574 GB, free: 99.45 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.953e-05/0.693, allocations: 301.1 kB / 0.5577 GB, free: 99.15 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007063/0.6937, allocations: 399.8 kB / 0.558 GB, free: 98.76 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008825/0.6946, allocations: 1.091 MB / 0.5591 GB, free: 97.37 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001641/0.6962, allocations: 1.609 MB / 0.5607 GB, free: 95.5 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.147e-05/0.6962, allocations: 8 kB / 0.5607 GB, free: 95.49 MB / 446.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.003141/0.6993, allocations: 2.242 MB / 0.5629 GB, free: 93.27 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.799e-05/0.6994, allocations: 19.94 kB / 0.5629 GB, free: 93.25 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001685/0.6995, allocations: 163.9 kB / 0.563 GB, free: 93.09 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.736e-05/0.6996, allocations: 39.03 kB / 0.5631 GB, free: 93.05 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001033/0.7006, allocations: 355.4 kB / 0.5634 GB, free: 92.71 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.812e-05/0.7006, allocations: 47.8 kB / 0.5635 GB, free: 92.66 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001833/0.7025, allocations: 200.8 kB / 0.5637 GB, free: 92.51 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000149/0.7026, allocations: 124 kB / 0.5638 GB, free: 92.39 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.001132/0.7038, allocations: 0.7112 MB / 0.5645 GB, free: 91.68 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006717/0.7044, allocations: 0.7502 MB / 0.5652 GB, free: 90.93 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003654/0.7081, allocations: 2.152 MB / 0.5673 GB, free: 88.84 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.498e-06/0.7081, allocations: 11.98 kB / 0.5673 GB, free: 88.83 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/0.7081, allocations: 0 / 0.5673 GB, free: 88.83 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.693e-06/0.7081, allocations: 11.81 kB / 0.5673 GB, free: 88.82 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00497/0.7131, allocations: 3.578 MB / 0.5708 GB, free: 85.19 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001517/0.7132, allocations: 140 kB / 0.571 GB, free: 85.05 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006933/0.7139, allocations: 147.8 kB / 0.5711 GB, free: 84.91 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.802e-06/0.7139, allocations: 4 kB / 0.5711 GB, free: 84.9 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.51e-05/0.714, allocations: 64.06 kB / 0.5712 GB, free: 84.84 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.051e-06/0.714, allocations: 4 kB / 0.5712 GB, free: 84.84 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.432e-06/0.714, allocations: 0 / 0.5712 GB, free: 84.84 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002823/0.7168, allocations: 2.19 MB / 0.5733 GB, free: 82.62 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001501/0.7183, allocations: 0.7845 MB / 0.5741 GB, free: 81.83 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006097/0.7189, allocations: 12 kB / 0.5741 GB, free: 81.82 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001081/0.72, allocations: 43.95 kB / 0.5741 GB, free: 81.78 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001874/0.7202, allocations: 92.56 kB / 0.5742 GB, free: 81.69 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001064/0.7203, allocations: 71.98 kB / 0.5743 GB, free: 81.62 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004078/0.7244, allocations: 3.608 MB / 0.5778 GB, free: 78.04 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.7244, allocations: 0 / 0.5778 GB, free: 78.04 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00224/0.7266, allocations: 1.082 MB / 0.5789 GB, free: 77.02 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.001314/0.7279, allocations: 1.175 MB / 0.58 GB, free: 75.91 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001966/0.7299, allocations: 1.374 MB / 0.5813 GB, free: 74.49 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.556e-06/0.7299, allocations: 0 / 0.5813 GB, free: 74.49 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008577/0.7308, allocations: 0.732 MB / 0.5821 GB, free: 73.71 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004349/0.7351, allocations: 1.183 MB / 0.5832 GB, free: 72.52 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009718/0.7448, allocations: 8.361 MB / 0.5914 GB, free: 64.12 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001354/0.7462, allocations: 2.588 MB / 0.5939 GB, free: 61.5 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006063/0.7468, allocations: 295.4 kB / 0.5942 GB, free: 61.22 MB / 446.1 MB Notification: Performance of SimCode: time 1.192e-06/0.7468, allocations: 0 / 0.5942 GB, free: 61.22 MB / 446.1 MB Notification: Performance of Templates: time 0.08871/0.8355, allocations: 70.85 MB / 0.6634 GB, free: 6.676 MB / 462.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.586419221945107]