Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001626/0.001626, allocations: 110 kB / 18.4 MB, free: 4.637 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.001738/0.001739, allocations: 190.4 kB / 19.33 MB, free: 3.715 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.463/1.463, allocations: 205.1 MB / 225.2 MB, free: 12.21 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001169/0.001169, allocations: 51.92 kB / 329.2 MB, free: 3.309 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08031/0.08149, allocations: 46.62 MB / 375.8 MB, free: 4.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.1739/0.2554, allocations: 25.35 MB / 401.2 MB, free: 12.75 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02809/0.2835, allocations: 21.33 MB / 422.5 MB, free: 12.77 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005758/0.2893, allocations: 180 kB / 422.7 MB, free: 12.68 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004949/0.2943, allocations: 1.721 MB / 424.4 MB, free: 11.36 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01238/0.3067, allocations: 3.166 MB / 427.6 MB, free: 8.75 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005793/0.3125, allocations: 1.573 MB / 429.1 MB, free: 7.512 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01768/0.3302, allocations: 12.4 MB / 441.5 MB, free: 13.72 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00149/0.3318, allocations: 0.8631 MB / 442.4 MB, free: 12.82 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002896/0.3347, allocations: 1.913 MB / 444.3 MB, free: 10.9 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002967/0.3376, allocations: 2.053 MB / 446.4 MB, free: 8.832 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005462/0.3382, allocations: 136 kB / 446.5 MB, free: 8.699 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004216/0.3424, allocations: 1.23 MB / 447.7 MB, free: 7.469 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005475/0.343, allocations: 0.601 MB / 448.3 MB, free: 6.863 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002494/0.3455, allocations: 2.635 MB / 451 MB, free: 4.211 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007041/0.3525, allocations: 6.677 MB / 457.6 MB, free: 13.5 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.3526, allocations: 0 / 457.6 MB, free: 13.5 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.3526, allocations: 3.938 kB / 457.6 MB, free: 13.5 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.068e-05/0.3527, allocations: 0 / 457.6 MB, free: 13.5 MB / 382.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.007595/0.3603, allocations: 6.725 MB / 464.4 MB, free: 6.68 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.361e-05/0.3603, allocations: 8.031 kB / 464.4 MB, free: 6.672 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006729/0.361, allocations: 0.7487 MB / 465.1 MB, free: 5.914 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005209/0.3662, allocations: 4.626 MB / 469.7 MB, free: 1.199 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.955e-05/0.3663, allocations: 69.98 kB / 469.8 MB, free: 1.129 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001843/0.3665, allocations: 95.91 kB / 469.9 MB, free: 1.035 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00195/0.3684, allocations: 1.305 MB / 471.2 MB, free: 15.71 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.735e-05/0.3684, allocations: 0.875 kB / 471.2 MB, free: 15.71 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001072/0.3686, allocations: 36 kB / 471.2 MB, free: 15.68 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.063e-05/0.3686, allocations: 43.91 kB / 471.3 MB, free: 15.64 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002164/0.3708, allocations: 1.484 MB / 472.8 MB, free: 14.15 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007453/0.3782, allocations: 5.633 MB / 478.4 MB, free: 8.414 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001489/0.3797, allocations: 0.9929 MB / 479.4 MB, free: 7.41 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00139/0.3811, allocations: 1.222 MB / 480.6 MB, free: 6.188 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04547/0.4266, allocations: 59.93 MB / 0.5279 GB, free: 2.07 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009041/0.4275, allocations: 0.5637 MB / 0.5284 GB, free: 1.5 MB / 462.1 MB Notification: Performance of pre-optimization done (n=85): time 2.565e-06/0.4276, allocations: 0 / 0.5284 GB, free: 1.5 MB / 462.1 MB Notification: Performance of matching and sorting (n=85): time 0.00281/0.4304, allocations: 1.872 MB / 0.5303 GB, free: 15.61 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.917e-05/0.4304, allocations: 67.95 kB / 0.5303 GB, free: 15.53 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00552/0.4359, allocations: 5.624 MB / 0.5358 GB, free: 9.938 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 8.586e-05/0.436, allocations: 45.64 kB / 0.5359 GB, free: 9.887 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002021/0.4381, allocations: 2.935 MB / 0.5387 GB, free: 6.938 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002236/0.4383, allocations: 299.9 kB / 0.539 GB, free: 6.641 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004227/0.4387, allocations: 418.5 kB / 0.5394 GB, free: 6.227 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 7.261e-05/0.4388, allocations: 305.1 kB / 0.5397 GB, free: 5.926 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007358/0.4396, allocations: 407.8 kB / 0.5401 GB, free: 5.527 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001058/0.4406, allocations: 1.087 MB / 0.5412 GB, free: 4.105 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001873/0.4425, allocations: 1.622 MB / 0.5427 GB, free: 2.152 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.082e-05/0.4425, allocations: 8 kB / 0.5427 GB, free: 2.145 MB / 478.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.1733/0.6158, allocations: 2.197 MB / 0.5449 GB, free: 158 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.282e-05/0.6159, allocations: 15.06 kB / 0.5449 GB, free: 158 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002817/0.6162, allocations: 168.3 kB / 0.5451 GB, free: 158 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.302e-05/0.6162, allocations: 32.97 kB / 0.5451 GB, free: 158 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001211/0.6174, allocations: 359.1 kB / 0.5454 GB, free: 158 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.677e-05/0.6175, allocations: 47.23 kB / 0.5455 GB, free: 158 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001807/0.6193, allocations: 189.8 kB / 0.5457 GB, free: 158 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001785/0.6195, allocations: 124.5 kB / 0.5458 GB, free: 158 MB / 478.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.001325/0.6208, allocations: 0.7162 MB / 0.5465 GB, free: 157.9 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006656/0.6215, allocations: 0.7191 MB / 0.5472 GB, free: 157.9 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003964/0.6254, allocations: 2.168 MB / 0.5493 GB, free: 157.8 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.119e-05/0.6255, allocations: 9.016 kB / 0.5493 GB, free: 157.8 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.081e-06/0.6255, allocations: 0.875 kB / 0.5493 GB, free: 157.8 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.808e-06/0.6255, allocations: 9.016 kB / 0.5493 GB, free: 157.8 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004766/0.6303, allocations: 3.618 MB / 0.5529 GB, free: 157.3 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001727/0.6305, allocations: 144.1 kB / 0.553 GB, free: 157.3 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007119/0.6312, allocations: 147.7 kB / 0.5531 GB, free: 157.3 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.872e-06/0.6312, allocations: 8.188 kB / 0.5531 GB, free: 157.3 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.089e-05/0.6313, allocations: 62.5 kB / 0.5532 GB, free: 157.3 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.672e-06/0.6313, allocations: 11.38 kB / 0.5532 GB, free: 157.3 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.6313, allocations: 1.156 kB / 0.5532 GB, free: 157.3 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003021/0.6343, allocations: 2.163 MB / 0.5553 GB, free: 156.4 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001044/0.6354, allocations: 0.8234 MB / 0.5561 GB, free: 155.9 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005033/0.6359, allocations: 17.64 kB / 0.5561 GB, free: 155.9 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001039/0.6369, allocations: 34.34 kB / 0.5562 GB, free: 155.9 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002024/0.6371, allocations: 106.3 kB / 0.5563 GB, free: 155.9 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001039/0.6373, allocations: 68.3 kB / 0.5563 GB, free: 155.8 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004528/0.6418, allocations: 3.636 MB / 0.5599 GB, free: 154.6 MB / 478.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.6418, allocations: 0 / 0.5599 GB, free: 154.6 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002297/0.6441, allocations: 1.082 MB / 0.561 GB, free: 154.5 MB / 478.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.001547/0.6457, allocations: 1.19 MB / 0.5621 GB, free: 154.3 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.002244/0.6479, allocations: 1.426 MB / 0.5635 GB, free: 153.8 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 3.867e-06/0.6479, allocations: 1.188 kB / 0.5635 GB, free: 153.8 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009343/0.6489, allocations: 0.7806 MB / 0.5643 GB, free: 153.4 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002912/0.6518, allocations: 0.9832 MB / 0.5652 GB, free: 152.9 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009057/0.6609, allocations: 8.233 MB / 0.5733 GB, free: 148.8 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001361/0.6622, allocations: 2.604 MB / 0.5758 GB, free: 147.6 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003978/0.6626, allocations: 299.4 kB / 0.5761 GB, free: 147.3 MB / 478.1 MB Notification: Performance of SimCode: time 6.81e-07/0.6627, allocations: 0 / 0.5761 GB, free: 147.3 MB / 478.1 MB Notification: Performance of Templates: time 0.07086/0.7335, allocations: 71.08 MB / 0.6455 GB, free: 76.84 MB / 478.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.sim & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/FourInverters/FourInverters.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches