Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.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.InvertersExtendedModel,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",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.001335/0.001335, allocations: 106.5 kB / 17.73 MB, free: 5.32 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.001343/0.001343, allocations: 187 kB / 18.67 MB, free: 4.387 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.506/1.506, allocations: 205.1 MB / 224.5 MB, free: 12.23 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.001618/0.001618, allocations: 55.92 kB / 328 MB, free: 3.809 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.103, allocations: 46.62 MB / 374.6 MB, free: 5.078 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.2067/0.3097, allocations: 14.6 MB / 389.2 MB, free: 4.32 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02737/0.3371, allocations: 19.8 MB / 409 MB, free: 6.105 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004266/0.3415, allocations: 90.25 kB / 409.1 MB, free: 6.059 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004498/0.346, allocations: 1.227 MB / 410.4 MB, free: 5.398 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01159/0.3576, allocations: 2.315 MB / 412.7 MB, free: 3.941 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006916/0.3646, allocations: 1.385 MB / 414.1 MB, free: 3.125 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01293/0.3776, allocations: 6.471 MB / 420.5 MB, free: 104 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001053/0.3787, allocations: 463.5 kB / 421 MB, free: 15.88 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002117/0.3808, allocations: 1.018 MB / 422 MB, free: 15.4 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001945/0.3828, allocations: 1.128 MB / 423.1 MB, free: 14.74 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002571/0.383, allocations: 77.88 kB / 423.2 MB, free: 14.73 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005403/0.3884, allocations: 1.156 MB / 424.4 MB, free: 14.07 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000673/0.3892, allocations: 337.5 kB / 424.7 MB, free: 13.74 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002795/0.392, allocations: 1.44 MB / 426.1 MB, free: 12.29 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01005/0.402, allocations: 4.025 MB / 430.2 MB, free: 8.25 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.01e-05/0.4021, allocations: 4 kB / 430.2 MB, free: 8.246 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.936e-06/0.4021, allocations: 0 / 430.2 MB, free: 8.246 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.000122/0.4022, allocations: 0 / 430.2 MB, free: 8.246 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: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.007277/0.4095, allocations: 3.981 MB / 434.1 MB, free: 4.188 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.459e-05/0.4096, allocations: 11.97 kB / 434.2 MB, free: 4.176 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001425/0.4097, allocations: 102.5 kB / 434.3 MB, free: 4.066 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005957/0.4103, allocations: 437.2 kB / 434.7 MB, free: 3.637 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003902/0.4143, allocations: 2.519 MB / 437.2 MB, free: 1.051 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.009e-05/0.4143, allocations: 33 kB / 437.2 MB, free: 1.016 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001239/0.4145, allocations: 63.89 kB / 437.3 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00143/0.4159, allocations: 0.7304 MB / 438 MB, free: 220 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.573e-05/0.4159, allocations: 0 / 438 MB, free: 220 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.213e-05/0.416, allocations: 20 kB / 438 MB, free: 200 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.455e-05/0.4161, allocations: 23.98 kB / 438.1 MB, free: 176 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001678/0.4177, allocations: 0.8163 MB / 438.9 MB, free: 15.36 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00582/0.4236, allocations: 3.126 MB / 442 MB, free: 12.15 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001339/0.4249, allocations: 0.5712 MB / 442.6 MB, free: 11.57 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001081/0.426, allocations: 0.6524 MB / 443.2 MB, free: 10.92 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03418/0.4602, allocations: 30.18 MB / 473.4 MB, free: 8.633 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008024/0.4611, allocations: 369.4 kB / 473.8 MB, free: 8.258 MB / 398.1 MB Notification: Performance of pre-optimization done (n=49): time 3.256e-06/0.4611, allocations: 0 / 473.8 MB, free: 8.258 MB / 398.1 MB Notification: Performance of matching and sorting (n=49): time 0.002636/0.4637, allocations: 1.138 MB / 474.9 MB, free: 7.113 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.71e-05/0.4638, allocations: 59.41 kB / 475 MB, free: 7.043 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004294/0.4681, allocations: 3.111 MB / 478.1 MB, free: 3.934 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 7.958e-05/0.4682, allocations: 29.7 kB / 478.1 MB, free: 3.898 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001583/0.4698, allocations: 1.59 MB / 479.7 MB, free: 2.297 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002331/0.4701, allocations: 178.6 kB / 479.9 MB, free: 2.121 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003743/0.4704, allocations: 226.4 kB / 480.1 MB, free: 1.895 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001827/0.4706, allocations: 341.9 kB / 480.4 MB, free: 1.555 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006507/0.4713, allocations: 241.9 kB / 480.7 MB, free: 1.316 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009908/0.4723, allocations: 0.602 MB / 481.3 MB, free: 0.5391 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001681/0.474, allocations: 0.8974 MB / 482.2 MB, free: 15.47 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.071e-05/0.474, allocations: 6.438 kB / 482.2 MB, free: 15.46 MB / 414.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002586/0.4766, allocations: 1.271 MB / 483.4 MB, free: 14.19 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.691e-05/0.4766, allocations: 11.98 kB / 483.4 MB, free: 14.18 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001185/0.4768, allocations: 84 kB / 483.5 MB, free: 14.09 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.238e-05/0.4768, allocations: 20.03 kB / 483.6 MB, free: 14.07 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007196/0.4775, allocations: 203.6 kB / 483.8 MB, free: 13.88 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.066e-05/0.4776, allocations: 31.8 kB / 483.8 MB, free: 13.84 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001164/0.4788, allocations: 119.3 kB / 483.9 MB, free: 13.73 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001172/0.4789, allocations: 60 kB / 484 MB, free: 13.67 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * 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 (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.0009872/0.4799, allocations: 461.4 kB / 484.4 MB, free: 13.21 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005316/0.4804, allocations: 421.3 kB / 484.8 MB, free: 12.79 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002823/0.4833, allocations: 1.219 MB / 486 MB, free: 11.57 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.828e-06/0.4833, allocations: 4 kB / 486 MB, free: 11.56 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.083e-06/0.4833, allocations: 0 / 486 MB, free: 11.56 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.306e-06/0.4833, allocations: 3.984 kB / 486 MB, free: 11.56 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003713/0.487, allocations: 2.147 MB / 488.2 MB, free: 9.344 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001066/0.4872, allocations: 71.98 kB / 488.3 MB, free: 9.273 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004885/0.4876, allocations: 95.92 kB / 488.4 MB, free: 9.18 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.971e-06/0.4877, allocations: 4 kB / 488.4 MB, free: 9.176 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.087e-05/0.4877, allocations: 31.98 kB / 488.4 MB, free: 9.145 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.163e-06/0.4877, allocations: 4 kB / 488.4 MB, free: 9.141 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.803e-06/0.4878, allocations: 0 / 488.4 MB, free: 9.141 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002658/0.4904, allocations: 1.352 MB / 489.7 MB, free: 7.762 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009256/0.4914, allocations: 0.5061 MB / 490.3 MB, free: 7.234 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002953/0.4917, allocations: 12 kB / 490.3 MB, free: 7.223 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006759/0.4924, allocations: 27.95 kB / 490.3 MB, free: 7.195 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001623/0.4925, allocations: 63.89 kB / 490.4 MB, free: 7.133 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.447e-05/0.4926, allocations: 43.92 kB / 490.4 MB, free: 7.09 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.003102/0.4957, allocations: 2.019 MB / 492.4 MB, free: 5.078 MB / 414.1 MB Notification: Performance of sort global known variables: time 3.91e-07/0.4957, allocations: 0 / 492.4 MB, free: 5.078 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001738/0.4975, allocations: 0.6086 MB / 493 MB, free: 4.469 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (c1.vinternal,c2.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 (42): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.004184/0.5017, allocations: 2.582 MB / 495.6 MB, free: 1.855 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001767/0.5035, allocations: 0.8139 MB / 496.4 MB, free: 1.016 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.5035, allocations: 0 / 496.4 MB, free: 1.016 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008438/0.5043, allocations: 447.7 kB / 496.9 MB, free: 0.5547 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002087/0.5064, allocations: 0.5489 MB / 497.4 MB, free: 4 kB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02746/0.5339, allocations: 17.17 MB / 0.5025 GB, free: 14.32 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001342/0.5353, allocations: 1.714 MB / 0.5042 GB, free: 12.58 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001139/0.5365, allocations: 365.4 kB / 0.5045 GB, free: 12.21 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001369/0.5378, allocations: 1.276 MB / 0.5058 GB, free: 10.94 MB / 446.1 MB Notification: Performance of SimCode: time 2.594e-06/0.5378, allocations: 0 / 0.5058 GB, free: 10.94 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3472/0.8851, allocations: 63.25 MB / 0.5676 GB, free: 148.7 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.15/17.04, allocations: 5.703 kB / 0.5676 GB, free: 148.7 MB / 478.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/InvertersExtendedModel/InvertersExtendedModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches