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: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_3_2_3_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.001517/0.001524, allocations: 106.6 kB / 17.58 MB, free: 5.441 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.001601/0.001601, allocations: 191.9 kB / 18.51 MB, free: 4.52 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.406/1.406, allocations: 205.1 MB / 224.4 MB, free: 12.32 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.001173/0.001173, allocations: 48.14 kB / 280.7 MB, free: 3.086 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07312/0.07431, allocations: 46.63 MB / 327.4 MB, free: 4.391 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.02367/0.098, allocations: 25.35 MB / 352.7 MB, free: 10.94 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02936/0.1274, allocations: 21.34 MB / 374.1 MB, free: 5.504 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005404/0.1329, allocations: 59.62 kB / 374.1 MB, free: 5.445 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006838/0.1398, allocations: 1.723 MB / 375.8 MB, free: 3.711 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01517/0.155, allocations: 3.16 MB / 379 MB, free: 0.5273 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.1753/0.3303, allocations: 1.569 MB / 380.6 MB, free: 13.63 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0197/0.3501, allocations: 12.35 MB / 392.9 MB, free: 13.41 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001536/0.3516, allocations: 0.8722 MB / 393.8 MB, free: 13.13 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002855/0.3545, allocations: 1.833 MB / 395.6 MB, free: 12.77 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002519/0.357, allocations: 2.05 MB / 397.7 MB, free: 11.96 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005504/0.3576, allocations: 139.8 kB / 397.8 MB, free: 11.96 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004064/0.3617, allocations: 1.228 MB / 399 MB, free: 11.96 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005791/0.3623, allocations: 0.6007 MB / 399.6 MB, free: 11.7 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002711/0.365, allocations: 2.649 MB / 402.3 MB, free: 10.62 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006401/0.3714, allocations: 6.618 MB / 408.9 MB, free: 7.621 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.109e-06/0.3714, allocations: 0 / 408.9 MB, free: 7.621 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3714, allocations: 4 kB / 408.9 MB, free: 7.617 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001106/0.3715, allocations: 0 / 408.9 MB, free: 7.617 MB / 318.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.007246/0.3788, allocations: 6.745 MB / 415.7 MB, free: 1.371 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.801e-05/0.3788, allocations: 8.031 kB / 415.7 MB, free: 1.363 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001601/0.379, allocations: 161.2 kB / 415.8 MB, free: 1.195 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006045/0.3796, allocations: 0.7481 MB / 416.6 MB, free: 452 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006391/0.386, allocations: 4.671 MB / 421.2 MB, free: 11.87 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.395e-05/0.3861, allocations: 66 kB / 421.3 MB, free: 11.81 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002088/0.3863, allocations: 99.84 kB / 421.4 MB, free: 11.71 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002109/0.3884, allocations: 1.294 MB / 422.7 MB, free: 10.4 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.921e-05/0.3885, allocations: 4 kB / 422.7 MB, free: 10.39 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001203/0.3886, allocations: 36 kB / 422.7 MB, free: 10.36 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.456e-05/0.3886, allocations: 45.66 kB / 422.8 MB, free: 10.32 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002452/0.3911, allocations: 1.48 MB / 424.3 MB, free: 8.836 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009218/0.4003, allocations: 5.649 MB / 429.9 MB, free: 3.188 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00177/0.4021, allocations: 1 MB / 430.9 MB, free: 2.168 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001645/0.4038, allocations: 1.216 MB / 432.1 MB, free: 0.9492 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05373/0.4575, allocations: 59.93 MB / 492.1 MB, free: 12.93 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009991/0.4585, allocations: 0.5594 MB / 492.6 MB, free: 12.37 MB / 414.1 MB Notification: Performance of pre-optimization done (n=85): time 2.745e-06/0.4586, allocations: 0 / 492.6 MB, free: 12.37 MB / 414.1 MB Notification: Performance of matching and sorting (n=85): time 0.003301/0.4619, allocations: 1.878 MB / 494.5 MB, free: 10.48 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.005e-05/0.4619, allocations: 64.89 kB / 494.6 MB, free: 10.41 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007184/0.4691, allocations: 5.632 MB / 0.4885 GB, free: 4.809 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001332/0.4693, allocations: 41.7 kB / 0.4885 GB, free: 4.762 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002271/0.4716, allocations: 2.927 MB / 0.4914 GB, free: 1.828 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002784/0.4718, allocations: 298.3 kB / 0.4917 GB, free: 1.539 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000477/0.4723, allocations: 429.8 kB / 0.4921 GB, free: 1.117 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 8.321e-05/0.4724, allocations: 301.1 kB / 0.4923 GB, free: 0.8203 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008352/0.4733, allocations: 403.8 kB / 0.4927 GB, free: 436 kB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001182/0.4745, allocations: 1.088 MB / 0.4938 GB, free: 15.02 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00209/0.4766, allocations: 1.613 MB / 0.4954 GB, free: 13.18 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.142e-05/0.4766, allocations: 15.69 kB / 0.4954 GB, free: 13.17 MB / 430.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.003302/0.4799, allocations: 2.224 MB / 0.4976 GB, free: 11.03 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.638e-05/0.4799, allocations: 16 kB / 0.4976 GB, free: 11.01 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002/0.4801, allocations: 164 kB / 0.4977 GB, free: 10.85 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.714e-05/0.4802, allocations: 32 kB / 0.4978 GB, free: 10.82 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001149/0.4813, allocations: 363.8 kB / 0.4981 GB, free: 10.46 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.39e-05/0.4814, allocations: 43.86 kB / 0.4981 GB, free: 10.42 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001611/0.483, allocations: 186.2 kB / 0.4983 GB, free: 10.24 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001725/0.4832, allocations: 124 kB / 0.4984 GB, free: 10.12 MB / 430.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.001212/0.4844, allocations: 0.7121 MB / 0.4991 GB, free: 9.395 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006523/0.4851, allocations: 0.7256 MB / 0.4998 GB, free: 8.66 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004752/0.4898, allocations: 2.169 MB / 0.502 GB, free: 6.496 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.598e-06/0.4898, allocations: 8 kB / 0.502 GB, free: 6.488 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.4898, allocations: 0 / 0.502 GB, free: 6.488 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.313e-06/0.4899, allocations: 3.984 kB / 0.502 GB, free: 6.484 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005081/0.4949, allocations: 3.62 MB / 0.5055 GB, free: 2.812 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001778/0.4951, allocations: 140 kB / 0.5056 GB, free: 2.676 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007335/0.4959, allocations: 151.9 kB / 0.5058 GB, free: 2.527 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.768e-06/0.4959, allocations: 4 kB / 0.5058 GB, free: 2.523 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.226e-05/0.496, allocations: 60 kB / 0.5059 GB, free: 2.465 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.893e-06/0.496, allocations: 7.938 kB / 0.5059 GB, free: 2.457 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.496, allocations: 0 / 0.5059 GB, free: 2.457 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003122/0.4991, allocations: 2.161 MB / 0.508 GB, free: 272 kB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001165/0.5003, allocations: 0.8242 MB / 0.5088 GB, free: 15.41 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005136/0.5008, allocations: 16 kB / 0.5088 GB, free: 15.39 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001037/0.5019, allocations: 31.95 kB / 0.5088 GB, free: 15.36 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002128/0.5021, allocations: 100.5 kB / 0.5089 GB, free: 15.27 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001135/0.5022, allocations: 75.94 kB / 0.509 GB, free: 15.19 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004135/0.5064, allocations: 3.633 MB / 0.5125 GB, free: 11.59 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5064, allocations: 0 / 0.5125 GB, free: 11.59 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001962/0.5084, allocations: 1.089 MB / 0.5136 GB, free: 10.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.004681/0.513, allocations: 3.81 MB / 0.5173 GB, free: 6.871 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002536/0.5156, allocations: 1.475 MB / 0.5188 GB, free: 5.352 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/0.5156, allocations: 0 / 0.5188 GB, free: 5.352 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001055/0.5167, allocations: 0.7737 MB / 0.5195 GB, free: 4.535 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002862/0.5195, allocations: 0.9966 MB / 0.5205 GB, free: 3.535 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.157/0.6765, allocations: 48.27 MB / 0.5676 GB, free: 161.3 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001339/0.6779, allocations: 2.608 MB / 0.5702 GB, free: 160.5 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00198/0.6799, allocations: 0.6852 MB / 0.5708 GB, free: 160.3 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001498/0.6814, allocations: 2.409 MB / 0.5732 GB, free: 158.1 MB / 462.1 MB Notification: Performance of SimCode: time 6.51e-07/0.6814, allocations: 3.75 kB / 0.5732 GB, free: 158.1 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3808/1.062, allocations: 110.3 MB / 0.6809 GB, free: 50.43 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.88/13.94, allocations: 4.562 kB / 0.6809 GB, free: 50.42 MB / 462.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Electrical_Spice3_Examples_FourInverters.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv","/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