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.001074/0.001074, allocations: 100.4 kB / 17.58 MB, free: 5.418 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.001083/0.001083, allocations: 192 kB / 18.51 MB, free: 4.508 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.431/1.431, allocations: 205.1 MB / 224.4 MB, free: 12.31 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.002425/0.002425, allocations: 59.91 kB / 280.7 MB, free: 3.082 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1119/0.1144, allocations: 46.63 MB / 327.4 MB, free: 4.379 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.02495/0.1393, allocations: 14.61 MB / 342 MB, free: 5.703 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.03527/0.1747, allocations: 19.8 MB / 361.8 MB, free: 1.828 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002192/0.1769, allocations: 31.81 kB / 361.8 MB, free: 1.797 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003424/0.1804, allocations: 1.232 MB / 363 MB, free: 0.5508 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007321/0.1878, allocations: 2.304 MB / 365.3 MB, free: 14.23 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004795/0.1926, allocations: 1.389 MB / 366.7 MB, free: 12.83 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.009566/0.2022, allocations: 6.441 MB / 373.2 MB, free: 6.375 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008422/0.203, allocations: 477.6 kB / 373.6 MB, free: 5.879 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00127/0.2043, allocations: 0.995 MB / 374.6 MB, free: 4.879 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001504/0.2058, allocations: 1.125 MB / 375.8 MB, free: 3.746 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004035/0.2063, allocations: 76 kB / 375.8 MB, free: 3.672 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004101/0.2104, allocations: 1.156 MB / 377 MB, free: 2.516 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004423/0.2108, allocations: 345.5 kB / 377.3 MB, free: 2.176 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001968/0.2128, allocations: 1.448 MB / 378.8 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1592/0.3721, allocations: 3.959 MB / 382.7 MB, free: 19.43 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.641e-06/0.3721, allocations: 7.031 kB / 382.7 MB, free: 19.43 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.3721, allocations: 0 / 382.7 MB, free: 19.43 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001034/0.3722, allocations: 1.375 kB / 382.7 MB, free: 19.43 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: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.006644/0.3789, allocations: 3.856 MB / 386.6 MB, free: 17.25 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.662e-05/0.379, allocations: 8.812 kB / 386.6 MB, free: 17.25 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001487/0.3791, allocations: 96.77 kB / 386.7 MB, free: 17.21 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008618/0.38, allocations: 414.2 kB / 387.1 MB, free: 17 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004594/0.3846, allocations: 2.514 MB / 389.6 MB, free: 16.16 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.415e-05/0.3846, allocations: 34.72 kB / 389.7 MB, free: 16.16 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001344/0.3848, allocations: 57.64 kB / 389.7 MB, free: 16.16 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001432/0.3862, allocations: 0.7303 MB / 390.4 MB, free: 16.11 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.786e-05/0.3863, allocations: 0 / 390.4 MB, free: 16.11 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.3e-05/0.3863, allocations: 24.02 kB / 390.5 MB, free: 16.11 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.603e-05/0.3864, allocations: 16.69 kB / 390.5 MB, free: 16.11 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001755/0.3882, allocations: 0.8233 MB / 391.3 MB, free: 16.11 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005676/0.3938, allocations: 3.112 MB / 394.4 MB, free: 15.57 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001112/0.395, allocations: 0.578 MB / 395 MB, free: 15.55 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008843/0.3959, allocations: 0.645 MB / 395.6 MB, free: 15.54 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02672/0.4226, allocations: 30.2 MB / 425.8 MB, free: 6.008 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008215/0.4235, allocations: 366.3 kB / 426.2 MB, free: 5.793 MB / 334.1 MB Notification: Performance of pre-optimization done (n=49): time 2.455e-06/0.4235, allocations: 0.875 kB / 426.2 MB, free: 5.793 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.002533/0.426, allocations: 1.114 MB / 427.3 MB, free: 4.719 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.831e-05/0.4261, allocations: 63.16 kB / 427.4 MB, free: 4.648 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003832/0.4299, allocations: 3.107 MB / 430.5 MB, free: 1.543 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.448e-05/0.43, allocations: 37.7 kB / 430.5 MB, free: 1.5 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00132/0.4313, allocations: 1.572 MB / 432.1 MB, free: 15.91 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001528/0.4315, allocations: 170.3 kB / 432.3 MB, free: 15.75 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003082/0.4318, allocations: 226.1 kB / 432.5 MB, free: 15.53 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001364/0.4319, allocations: 341.9 kB / 432.8 MB, free: 15.19 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005857/0.4325, allocations: 245.8 kB / 433.1 MB, free: 14.95 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008055/0.4333, allocations: 0.5976 MB / 433.7 MB, free: 14.18 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001432/0.4348, allocations: 0.8981 MB / 434.5 MB, free: 13.16 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.434e-06/0.4348, allocations: 8 kB / 434.6 MB, free: 13.15 MB / 350.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002295/0.4371, allocations: 1.247 MB / 435.8 MB, free: 11.97 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.005e-05/0.4371, allocations: 15.03 kB / 435.8 MB, free: 11.96 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001083/0.4373, allocations: 80 kB / 435.9 MB, free: 11.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.669e-05/0.4373, allocations: 20 kB / 435.9 MB, free: 11.86 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007257/0.438, allocations: 200.9 kB / 436.1 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.182e-05/0.4381, allocations: 27.11 kB / 436.1 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001312/0.4394, allocations: 108.5 kB / 436.2 MB, free: 11.55 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001117/0.4395, allocations: 68 kB / 436.3 MB, free: 11.49 MB / 350.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.0007505/0.4403, allocations: 461.2 kB / 436.8 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003794/0.4406, allocations: 401 kB / 437.2 MB, free: 10.65 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002929/0.4436, allocations: 1.222 MB / 438.4 MB, free: 9.434 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.364e-06/0.4436, allocations: 4 kB / 438.4 MB, free: 9.43 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.94e-06/0.4436, allocations: 0 / 438.4 MB, free: 9.43 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.4436, allocations: 0 / 438.4 MB, free: 9.43 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003593/0.4472, allocations: 2.157 MB / 440.5 MB, free: 7.223 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001025/0.4473, allocations: 70.69 kB / 440.6 MB, free: 7.156 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004994/0.4478, allocations: 91.08 kB / 440.7 MB, free: 7.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.295e-06/0.4479, allocations: 4 kB / 440.7 MB, free: 7.066 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.258e-05/0.4479, allocations: 35.98 kB / 440.7 MB, free: 7.031 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.22e-06/0.4479, allocations: 4 kB / 440.7 MB, free: 7.027 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.4479, allocations: 0 / 440.7 MB, free: 7.027 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002408/0.4504, allocations: 1.329 MB / 442.1 MB, free: 5.676 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001019/0.4514, allocations: 496 kB / 442.6 MB, free: 5.168 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000394/0.4518, allocations: 11.98 kB / 442.6 MB, free: 5.156 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007053/0.4525, allocations: 27.97 kB / 442.6 MB, free: 5.129 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000147/0.4527, allocations: 61.59 kB / 442.7 MB, free: 5.07 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.693e-05/0.4528, allocations: 43.92 kB / 442.7 MB, free: 5.027 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002609/0.4554, allocations: 2.015 MB / 444.7 MB, free: 3.02 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4554, allocations: 4 kB / 444.7 MB, free: 3.016 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002034/0.4574, allocations: 0.5973 MB / 445.3 MB, free: 2.418 MB / 350.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.005386/0.4628, allocations: 2.562 MB / 447.9 MB, free: 15.97 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002516/0.4654, allocations: 0.8298 MB / 448.7 MB, free: 15.16 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.4654, allocations: 0 / 448.7 MB, free: 15.16 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001053/0.4664, allocations: 452.2 kB / 449.1 MB, free: 14.7 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003327/0.4698, allocations: 0.5431 MB / 449.7 MB, free: 14.16 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03106/0.5009, allocations: 22.29 MB / 472 MB, free: 5.723 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001307/0.5022, allocations: 1.714 MB / 473.7 MB, free: 3.977 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001336/0.5036, allocations: 365.4 kB / 474 MB, free: 3.613 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001332/0.5049, allocations: 1.272 MB / 475.3 MB, free: 2.34 MB / 382.1 MB Notification: Performance of SimCode: time 2.204e-06/0.5049, allocations: 0 / 475.3 MB, free: 2.34 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4377/0.9426, allocations: 62.58 MB / 0.5253 GB, free: 3.699 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.9/11.84, allocations: 15.75 kB / 0.5253 GB, free: 3.684 MB / 446.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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_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_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.csv","/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