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.001677/0.001677, allocations: 109.5 kB / 20.43 MB, free: 1.449 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.00196/0.00196, allocations: 190 kB / 23.72 MB, free: 4.68 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.5/1.5, allocations: 225.6 MB / 252.5 MB, free: 13 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.001537/0.001537, allocations: 51.91 kB / 370.9 MB, free: 9.348 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.227/0.2285, allocations: 52.18 MB / 423.1 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.02718/0.2557, allocations: 26.82 MB / 449.9 MB, free: 3.758 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.03179/0.2875, allocations: 22.41 MB / 472.3 MB, free: 13.25 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004816/0.2923, allocations: 269.1 kB / 472.6 MB, free: 12.99 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005128/0.2974, allocations: 1.781 MB / 474.4 MB, free: 11.2 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01104/0.3085, allocations: 3.322 MB / 477.7 MB, free: 7.852 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00484/0.3133, allocations: 1.644 MB / 479.4 MB, free: 6.203 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01976/0.3331, allocations: 12.76 MB / 492.1 MB, free: 9.406 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001175/0.3342, allocations: 0.5043 MB / 492.6 MB, free: 8.867 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003256/0.3375, allocations: 2.182 MB / 494.8 MB, free: 6.676 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003155/0.3406, allocations: 2.107 MB / 496.9 MB, free: 4.555 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007544/0.3414, allocations: 132 kB / 497 MB, free: 4.426 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005713/0.3471, allocations: 1.537 MB / 498.6 MB, free: 2.887 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001488/0.3486, allocations: 0.6048 MB / 499.2 MB, free: 2.277 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004869/0.3535, allocations: 2.62 MB / 0.49 GB, free: 15.64 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01071/0.3642, allocations: 6.671 MB / 0.4965 GB, free: 8.938 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.3642, allocations: 0 / 0.4965 GB, free: 8.938 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.3642, allocations: 0 / 0.4965 GB, free: 8.938 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001481/0.3643, allocations: 4 kB / 0.4966 GB, free: 8.934 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.01085/0.3752, allocations: 6.855 MB / 0.5032 GB, free: 1.996 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.654e-05/0.3752, allocations: 11.97 kB / 0.5033 GB, free: 1.984 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009236/0.3761, allocations: 0.7764 MB / 0.504 GB, free: 1.203 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007148/0.3833, allocations: 4.371 MB / 0.5083 GB, free: 12.71 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.123e-05/0.3834, allocations: 66 kB / 0.5083 GB, free: 12.64 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000232/0.3836, allocations: 103.9 kB / 0.5084 GB, free: 12.54 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002485/0.3861, allocations: 1.313 MB / 0.5097 GB, free: 11.21 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.228e-05/0.3861, allocations: 4 kB / 0.5097 GB, free: 11.21 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001188/0.3862, allocations: 32 kB / 0.5098 GB, free: 11.18 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.184e-05/0.3863, allocations: 39.97 kB / 0.5098 GB, free: 11.14 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002771/0.389, allocations: 1.496 MB / 0.5113 GB, free: 9.645 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01021/0.3992, allocations: 5.56 MB / 0.5167 GB, free: 4.012 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001802/0.401, allocations: 0.8763 MB / 0.5175 GB, free: 3.121 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001703/0.4027, allocations: 1.067 MB / 0.5186 GB, free: 2.055 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2302/0.6329, allocations: 27.09 MB / 0.545 GB, free: 106.3 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009231/0.6338, allocations: 0.554 MB / 0.5456 GB, free: 105.9 MB / 446.1 MB Notification: Performance of pre-optimization done (n=85): time 2.515e-06/0.6338, allocations: 0 / 0.5456 GB, free: 105.9 MB / 446.1 MB Notification: Performance of matching and sorting (n=85): time 0.002958/0.6368, allocations: 1.915 MB / 0.5475 GB, free: 105.5 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.235e-05/0.6368, allocations: 63.81 kB / 0.5475 GB, free: 105.4 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005384/0.6422, allocations: 5.59 MB / 0.553 GB, free: 102.5 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001372/0.6424, allocations: 44.7 kB / 0.553 GB, free: 102.5 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001608/0.644, allocations: 2.965 MB / 0.5559 GB, free: 99.93 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002537/0.6442, allocations: 314.1 kB / 0.5562 GB, free: 99.71 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004151/0.6446, allocations: 419.9 kB / 0.5566 GB, free: 99.4 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.583e-05/0.6447, allocations: 305.1 kB / 0.5569 GB, free: 99.1 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007506/0.6454, allocations: 403.2 kB / 0.5573 GB, free: 98.71 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009377/0.6464, allocations: 1.091 MB / 0.5584 GB, free: 97.32 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001772/0.6481, allocations: 1.608 MB / 0.5599 GB, free: 95.44 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.036e-05/0.6482, allocations: 11.81 kB / 0.5599 GB, free: 95.43 MB / 446.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.003474/0.6516, allocations: 2.235 MB / 0.5621 GB, free: 93.21 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.861e-05/0.6517, allocations: 21.88 kB / 0.5621 GB, free: 93.19 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001743/0.6518, allocations: 160 kB / 0.5623 GB, free: 93.04 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.994e-05/0.6519, allocations: 32 kB / 0.5623 GB, free: 93 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001085/0.653, allocations: 359.1 kB / 0.5627 GB, free: 92.66 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.07e-05/0.653, allocations: 59.45 kB / 0.5627 GB, free: 92.6 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002351/0.6553, allocations: 194.1 kB / 0.5629 GB, free: 92.45 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001702/0.6555, allocations: 124.6 kB / 0.563 GB, free: 92.33 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.001263/0.6568, allocations: 0.7133 MB / 0.5637 GB, free: 91.63 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008692/0.6576, allocations: 0.7492 MB / 0.5645 GB, free: 90.88 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00399/0.6616, allocations: 2.159 MB / 0.5666 GB, free: 88.79 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.897e-06/0.6616, allocations: 4 kB / 0.5666 GB, free: 88.79 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.772e-06/0.6617, allocations: 4 kB / 0.5666 GB, free: 88.79 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.054e-06/0.6617, allocations: 7.812 kB / 0.5666 GB, free: 88.78 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005222/0.6669, allocations: 3.58 MB / 0.5701 GB, free: 85.16 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001372/0.667, allocations: 144 kB / 0.5702 GB, free: 85.02 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007471/0.6678, allocations: 155.9 kB / 0.5704 GB, free: 84.87 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.071e-06/0.6678, allocations: 0 / 0.5704 GB, free: 84.87 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.107e-05/0.6679, allocations: 59.98 kB / 0.5704 GB, free: 84.81 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.901e-06/0.6679, allocations: 4 kB / 0.5704 GB, free: 84.81 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/0.6679, allocations: 0 / 0.5704 GB, free: 84.81 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002984/0.6708, allocations: 2.194 MB / 0.5726 GB, free: 82.59 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001597/0.6724, allocations: 0.7746 MB / 0.5733 GB, free: 81.81 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005579/0.673, allocations: 19.98 kB / 0.5733 GB, free: 81.79 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001117/0.6741, allocations: 31.97 kB / 0.5734 GB, free: 81.76 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002024/0.6743, allocations: 104.5 kB / 0.5735 GB, free: 81.66 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001124/0.6744, allocations: 64 kB / 0.5735 GB, free: 81.59 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003887/0.6783, allocations: 3.616 MB / 0.5771 GB, free: 78.01 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.6783, allocations: 4 kB / 0.5771 GB, free: 78 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001976/0.6803, allocations: 1.084 MB / 0.5781 GB, free: 76.99 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.00134/0.6816, allocations: 1.175 MB / 0.5793 GB, free: 75.87 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00199/0.6836, allocations: 1.365 MB / 0.5806 GB, free: 74.46 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.6836, allocations: 1.375 kB / 0.5806 GB, free: 74.46 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009096/0.6845, allocations: 0.736 MB / 0.5813 GB, free: 73.68 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004188/0.6887, allocations: 1.177 MB / 0.5825 GB, free: 72.5 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008385/0.6971, allocations: 8.255 MB / 0.5905 GB, free: 64.2 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001381/0.6985, allocations: 2.595 MB / 0.5931 GB, free: 61.58 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001698/0.7002, allocations: 0.6768 MB / 0.5937 GB, free: 60.9 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003161/0.7005, allocations: 283.4 kB / 0.594 GB, free: 60.63 MB / 446.1 MB Notification: Performance of SimCode: time 1.062e-06/0.7005, allocations: 4 kB / 0.594 GB, free: 60.62 MB / 446.1 MB Notification: Performance of Templates: time 0.08069/0.7812, allocations: 56.6 MB / 0.6493 GB, free: 4.629 MB / 446.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/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.754133120179176]