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: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001741/0.001741, allocations: 108.3 kB / 16.92 MB, free: 5.754 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.002181/0.002181, allocations: 191.3 kB / 17.85 MB, free: 5.176 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.921/1.921, allocations: 222.9 MB / 241.6 MB, free: 15.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001092/0.001093, allocations: 52.61 kB / 300.7 MB, free: 5.809 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1177/0.1188, allocations: 49.43 MB / 350.2 MB, free: 4.359 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.2077/0.3266, allocations: 26.7 MB / 376.9 MB, free: 9.066 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02646/0.3531, allocations: 22.34 MB / 399.2 MB, free: 13.73 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006165/0.3593, allocations: 59.97 kB / 399.3 MB, free: 13.71 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005631/0.365, allocations: 1.776 MB / 401 MB, free: 12.77 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01754/0.3826, allocations: 3.219 MB / 404.3 MB, free: 10.13 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007883/0.3905, allocations: 1.623 MB / 405.9 MB, free: 8.867 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.02344/0.414, allocations: 12.63 MB / 418.5 MB, free: 308 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001898/0.4159, allocations: 0.8592 MB / 419.4 MB, free: 15.4 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004172/0.4201, allocations: 2.022 MB / 421.4 MB, free: 13.37 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004412/0.4245, allocations: 2.096 MB / 423.5 MB, free: 11.26 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006513/0.4252, allocations: 140 kB / 423.6 MB, free: 11.12 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006818/0.4321, allocations: 1.537 MB / 425.2 MB, free: 9.582 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009273/0.433, allocations: 0.6049 MB / 425.8 MB, free: 8.973 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004688/0.4377, allocations: 2.635 MB / 428.4 MB, free: 6.32 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01035/0.4481, allocations: 6.575 MB / 435 MB, free: 15.72 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.014e-06/0.4481, allocations: 0 / 435 MB, free: 15.72 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.4481, allocations: 0 / 435 MB, free: 15.72 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001886/0.4483, allocations: 0 / 435 MB, free: 15.72 MB / 350.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.01189/0.4602, allocations: 6.69 MB / 441.7 MB, free: 8.934 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.469e-05/0.4603, allocations: 12.03 kB / 441.7 MB, free: 8.922 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002235/0.4605, allocations: 157.2 kB / 441.8 MB, free: 8.758 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001011/0.4616, allocations: 0.7487 MB / 442.6 MB, free: 8 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007292/0.4689, allocations: 4.636 MB / 447.2 MB, free: 3.27 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.45e-05/0.4689, allocations: 70 kB / 447.3 MB, free: 3.203 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002237/0.4692, allocations: 99.84 kB / 447.4 MB, free: 3.105 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002281/0.4715, allocations: 1.301 MB / 448.7 MB, free: 1.785 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.133e-05/0.4715, allocations: 0 / 448.7 MB, free: 1.785 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000137/0.4716, allocations: 36 kB / 448.7 MB, free: 1.75 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.894e-05/0.4717, allocations: 43.97 kB / 448.8 MB, free: 1.707 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002615/0.4743, allocations: 1.48 MB / 450.2 MB, free: 232 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01035/0.4847, allocations: 5.623 MB / 455.9 MB, free: 10.52 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002536/0.4872, allocations: 0.989 MB / 456.8 MB, free: 9.516 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002875/0.4901, allocations: 1.226 MB / 458.1 MB, free: 8.285 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09761/0.5878, allocations: 59.81 MB / 0.5057 GB, free: 4.301 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002006/0.5898, allocations: 0.5559 MB / 0.5063 GB, free: 3.73 MB / 430.1 MB Notification: Performance of pre-optimization done (n=85): time 1.024e-05/0.5899, allocations: 3.984 kB / 0.5063 GB, free: 3.727 MB / 430.1 MB Notification: Performance of matching and sorting (n=85): time 0.006635/0.5965, allocations: 1.875 MB / 0.5081 GB, free: 1.844 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.324e-05/0.5966, allocations: 59.97 kB / 0.5082 GB, free: 1.77 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01503/0.6117, allocations: 5.59 MB / 0.5136 GB, free: 12.21 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003574/0.6121, allocations: 41.7 kB / 0.5137 GB, free: 12.16 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004822/0.617, allocations: 2.947 MB / 0.5166 GB, free: 9.199 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006912/0.6177, allocations: 299.9 kB / 0.5168 GB, free: 8.902 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001244/0.619, allocations: 422.5 kB / 0.5172 GB, free: 8.484 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001434/0.6191, allocations: 301.1 kB / 0.5175 GB, free: 8.188 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001743/0.6209, allocations: 403.7 kB / 0.5179 GB, free: 7.793 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00235/0.6233, allocations: 1.091 MB / 0.519 GB, free: 6.375 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003979/0.6273, allocations: 1.611 MB / 0.5205 GB, free: 4.43 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.331e-05/0.6273, allocations: 8 kB / 0.5206 GB, free: 4.422 MB / 446.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.00623/0.6336, allocations: 2.201 MB / 0.5227 GB, free: 2.211 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.477e-05/0.6336, allocations: 16 kB / 0.5227 GB, free: 2.195 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002265/0.6338, allocations: 163.9 kB / 0.5229 GB, free: 2.035 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.847e-05/0.6339, allocations: 39.94 kB / 0.5229 GB, free: 1.996 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001318/0.6352, allocations: 356.1 kB / 0.5233 GB, free: 1.648 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.762e-05/0.6353, allocations: 47.8 kB / 0.5233 GB, free: 1.602 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00228/0.6376, allocations: 190.1 kB / 0.5235 GB, free: 1.414 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002473/0.6378, allocations: 132 kB / 0.5236 GB, free: 1.285 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.00168/0.6395, allocations: 0.7043 MB / 0.5243 GB, free: 0.5703 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.2684/0.9079, allocations: 0.7103 MB / 0.525 GB, free: 155.3 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01193/0.9199, allocations: 2.151 MB / 0.5271 GB, free: 155.2 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.69e-05/0.92, allocations: 7.688 kB / 0.5271 GB, free: 155.2 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.936e-05/0.9201, allocations: 4.375 kB / 0.5271 GB, free: 155.2 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.204e-05/0.9201, allocations: 7.062 kB / 0.5271 GB, free: 155.2 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01614/0.9363, allocations: 3.602 MB / 0.5306 GB, free: 154 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0003319/0.9367, allocations: 142.2 kB / 0.5308 GB, free: 154 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001469/0.9382, allocations: 153.4 kB / 0.5309 GB, free: 153.9 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.811e-05/0.9382, allocations: 4.891 kB / 0.5309 GB, free: 153.9 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001764/0.9384, allocations: 67.8 kB / 0.531 GB, free: 153.9 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.276e-05/0.9384, allocations: 4.062 kB / 0.531 GB, free: 153.9 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.168e-06/0.9384, allocations: 1.281 kB / 0.531 GB, free: 153.9 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006641/0.9451, allocations: 2.152 MB / 0.5331 GB, free: 153.3 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003029/0.9481, allocations: 0.8203 MB / 0.5339 GB, free: 152.8 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001582/0.9497, allocations: 14 kB / 0.5339 GB, free: 152.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002929/0.9527, allocations: 38.38 kB / 0.5339 GB, free: 152.8 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004018/0.9531, allocations: 98.25 kB / 0.534 GB, free: 152.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002257/0.9534, allocations: 69.8 kB / 0.5341 GB, free: 152.7 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.01223/0.9656, allocations: 3.61 MB / 0.5376 GB, free: 151.5 MB / 446.1 MB Notification: Performance of sort global known variables: time 7.32e-07/0.9657, allocations: 0 / 0.5376 GB, free: 151.5 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004493/0.9702, allocations: 1.078 MB / 0.5387 GB, free: 151.5 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.008761/0.9789, allocations: 3.796 MB / 0.5424 GB, free: 149.9 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004231/0.9832, allocations: 1.463 MB / 0.5438 GB, free: 149.2 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/0.9832, allocations: 0 / 0.5438 GB, free: 149.2 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001661/0.9849, allocations: 0.7738 MB / 0.5446 GB, free: 148.8 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008947/0.9939, allocations: 1.206 MB / 0.5457 GB, free: 148.3 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05454/1.048, allocations: 47.81 MB / 0.5924 GB, free: 100.8 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001564/1.05, allocations: 2.592 MB / 0.595 GB, free: 98.21 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002453/1.053, allocations: 0.6885 MB / 0.5956 GB, free: 97.52 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00177/1.054, allocations: 2.389 MB / 0.598 GB, free: 95.12 MB / 446.1 MB Notification: Performance of SimCode: time 7.12e-07/1.054, allocations: 0 / 0.598 GB, free: 95.12 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3661/1.42, allocations: 109.8 MB / 0.7052 GB, free: 141.6 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.28/20.7, allocations: 4 kB / 0.7052 GB, free: 141.6 MB / 446.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_FourInverters.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv","/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) Reference file matches