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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=5000,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=5000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001051/0.001051, allocations: 115.2 kB / 16.63 MB, free: 6.812 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001024/0.001024, allocations: 186 kB / 17.55 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.269/1.269, allocations: 222.9 MB / 241.2 MB, free: 15.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00111/0.00111, allocations: 42.42 kB / 300.1 MB, free: 6.23 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08397/0.0851, allocations: 49.45 MB / 349.6 MB, free: 4.77 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.1738/0.2589, allocations: 26.4 MB / 376 MB, free: 8.918 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02314/0.2821, allocations: 22.19 MB / 398.2 MB, free: 14.27 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004117/0.2863, allocations: 63.44 kB / 398.2 MB, free: 14.25 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004018/0.2903, allocations: 1.509 MB / 399.7 MB, free: 13.57 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0103/0.3007, allocations: 2.769 MB / 402.5 MB, free: 11.55 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004918/0.3056, allocations: 1.41 MB / 403.9 MB, free: 10.5 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01676/0.3224, allocations: 12.8 MB / 416.7 MB, free: 1.941 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001279/0.3237, allocations: 0.8599 MB / 417.6 MB, free: 1.047 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002954/0.3267, allocations: 2.072 MB / 419.6 MB, free: 14.96 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002962/0.3296, allocations: 2.107 MB / 421.7 MB, free: 12.84 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005813/0.3302, allocations: 140 kB / 421.9 MB, free: 12.7 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004939/0.3352, allocations: 1.545 MB / 423.4 MB, free: 11.16 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007322/0.3359, allocations: 0.6049 MB / 424 MB, free: 10.55 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003086/0.339, allocations: 2.635 MB / 426.7 MB, free: 7.895 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00715/0.3462, allocations: 6.552 MB / 433.2 MB, free: 1.316 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.58e-05/0.3462, allocations: 7.984 kB / 433.2 MB, free: 1.309 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.3462, allocations: 0 / 433.2 MB, free: 1.309 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.762e-05/0.3463, allocations: 0 / 433.2 MB, free: 1.309 MB / 334.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.008344/0.3547, allocations: 6.69 MB / 439.9 MB, free: 10.52 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.507e-05/0.3547, allocations: 8.031 kB / 439.9 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006943/0.3554, allocations: 0.7448 MB / 440.7 MB, free: 9.762 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005679/0.3611, allocations: 4.632 MB / 445.3 MB, free: 5.035 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.892e-05/0.3612, allocations: 68.69 kB / 445.4 MB, free: 4.973 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002016/0.3614, allocations: 99.91 kB / 445.5 MB, free: 4.875 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002063/0.3634, allocations: 1.305 MB / 446.8 MB, free: 3.551 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.08e-05/0.3635, allocations: 3.938 kB / 446.8 MB, free: 3.547 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000116/0.3636, allocations: 36 kB / 446.8 MB, free: 3.512 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.094e-05/0.3636, allocations: 39.97 kB / 446.8 MB, free: 3.473 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002337/0.366, allocations: 1.484 MB / 448.3 MB, free: 1.988 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008073/0.3741, allocations: 5.624 MB / 454 MB, free: 12.28 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001618/0.3757, allocations: 0.989 MB / 454.9 MB, free: 11.28 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001562/0.3773, allocations: 1.223 MB / 456.2 MB, free: 10.05 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05157/0.4288, allocations: 59.81 MB / 0.5039 GB, free: 6.059 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009707/0.4298, allocations: 0.5559 MB / 0.5044 GB, free: 5.488 MB / 430.1 MB Notification: Performance of pre-optimization done (n=85): time 2.825e-06/0.4299, allocations: 3.938 kB / 0.5044 GB, free: 5.484 MB / 430.1 MB Notification: Performance of matching and sorting (n=85): time 0.003125/0.433, allocations: 1.871 MB / 0.5063 GB, free: 3.605 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.911e-05/0.433, allocations: 59.97 kB / 0.5063 GB, free: 3.531 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006782/0.4398, allocations: 5.597 MB / 0.5118 GB, free: 13.96 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001341/0.44, allocations: 45.64 kB / 0.5118 GB, free: 13.91 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002823/0.4428, allocations: 2.943 MB / 0.5147 GB, free: 10.95 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002382/0.4431, allocations: 295.9 kB / 0.515 GB, free: 10.66 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004717/0.4436, allocations: 422.5 kB / 0.5154 GB, free: 10.24 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.273e-05/0.4436, allocations: 305.1 kB / 0.5157 GB, free: 9.941 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008131/0.4445, allocations: 399.8 kB / 0.5161 GB, free: 9.551 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00119/0.4457, allocations: 1.095 MB / 0.5171 GB, free: 8.125 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002081/0.4478, allocations: 1.611 MB / 0.5187 GB, free: 6.184 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.013e-05/0.4478, allocations: 4 kB / 0.5187 GB, free: 6.18 MB / 446.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.0032/0.451, allocations: 2.203 MB / 0.5209 GB, free: 3.965 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.839e-05/0.451, allocations: 16 kB / 0.5209 GB, free: 3.949 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001985/0.4512, allocations: 167.9 kB / 0.521 GB, free: 3.785 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.515e-05/0.4513, allocations: 32.81 kB / 0.5211 GB, free: 3.754 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001168/0.4524, allocations: 359.4 kB / 0.5214 GB, free: 3.402 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.643e-05/0.4525, allocations: 51.8 kB / 0.5215 GB, free: 3.352 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001516/0.454, allocations: 186.1 kB / 0.5216 GB, free: 3.168 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001656/0.4542, allocations: 128 kB / 0.5218 GB, free: 3.043 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.001073/0.4553, allocations: 0.7082 MB / 0.5224 GB, free: 2.324 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006082/0.4559, allocations: 0.714 MB / 0.5231 GB, free: 1.602 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1471/0.6029, allocations: 2.15 MB / 0.5252 GB, free: 155.2 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.23e-05/0.603, allocations: 8.25 kB / 0.5252 GB, free: 155.2 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.653e-06/0.603, allocations: 1.953 kB / 0.5252 GB, free: 155.2 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.795e-06/0.603, allocations: 3.266 kB / 0.5253 GB, free: 155.2 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005399/0.6084, allocations: 3.61 MB / 0.5288 GB, free: 154.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.00017/0.6086, allocations: 140.5 kB / 0.5289 GB, free: 154.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007229/0.6093, allocations: 152.9 kB / 0.5291 GB, free: 154.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.673e-06/0.6093, allocations: 2.125 kB / 0.5291 GB, free: 154.3 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.96e-05/0.6094, allocations: 64.88 kB / 0.5291 GB, free: 154.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.969e-06/0.6094, allocations: 2.656 kB / 0.5291 GB, free: 154.3 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.6095, allocations: 1.281 kB / 0.5291 GB, free: 154.3 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002933/0.6124, allocations: 2.156 MB / 0.5312 GB, free: 153.7 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001098/0.6135, allocations: 0.8185 MB / 0.532 GB, free: 153.2 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000526/0.614, allocations: 17.61 kB / 0.532 GB, free: 153.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001059/0.6151, allocations: 34.11 kB / 0.5321 GB, free: 153.2 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002126/0.6153, allocations: 99.05 kB / 0.5322 GB, free: 153.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000103/0.6154, allocations: 69.77 kB / 0.5322 GB, free: 153.2 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004485/0.6199, allocations: 3.609 MB / 0.5358 GB, free: 152 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6199, allocations: 0 / 0.5358 GB, free: 152 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002017/0.622, allocations: 1.077 MB / 0.5368 GB, free: 151.9 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.001469/0.6234, allocations: 1.177 MB / 0.538 GB, free: 151.7 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002299/0.6257, allocations: 1.47 MB / 0.5394 GB, free: 151.1 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/0.6258, allocations: 0 / 0.5394 GB, free: 151.1 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009561/0.6267, allocations: 0.7669 MB / 0.5402 GB, free: 150.7 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00404/0.6308, allocations: 1.209 MB / 0.5413 GB, free: 150.2 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008439/0.6392, allocations: 9.747 MB / 0.5509 GB, free: 144.7 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001264/0.6405, allocations: 2.593 MB / 0.5534 GB, free: 143.8 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002221/0.6427, allocations: 0.6837 MB / 0.5541 GB, free: 143.4 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000311/0.643, allocations: 285.5 kB / 0.5543 GB, free: 143.4 MB / 446.1 MB Notification: Performance of SimCode: time 5.81e-07/0.6431, allocations: 0 / 0.5543 GB, free: 143.4 MB / 446.1 MB Notification: Performance of Templates: time 0.07214/0.7152, allocations: 55.01 MB / 0.608 GB, free: 89.68 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.makefile (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) 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) Reference file matches