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.001114/0.001114, allocations: 114.4 kB / 17.74 MB, free: 5.355 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.0012/0.0012, allocations: 183.1 kB / 18.66 MB, free: 4.434 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.366/1.366, allocations: 205.1 MB / 224.5 MB, free: 12.28 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.001284/0.001284, allocations: 67.89 kB / 328 MB, free: 3.828 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08545/0.08674, allocations: 46.61 MB / 374.6 MB, free: 5.105 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.1904/0.2772, allocations: 14.61 MB / 389.2 MB, free: 4.363 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02199/0.2992, allocations: 19.79 MB / 409 MB, free: 6.148 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003026/0.3023, allocations: 94.66 kB / 409.1 MB, free: 6.098 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00371/0.3061, allocations: 1.24 MB / 410.4 MB, free: 5.426 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009242/0.3153, allocations: 2.332 MB / 412.7 MB, free: 3.961 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005183/0.3205, allocations: 1.385 MB / 414.1 MB, free: 3.156 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01065/0.3312, allocations: 6.474 MB / 420.6 MB, free: 132 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008441/0.3321, allocations: 468.5 kB / 421 MB, free: 15.9 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001714/0.3338, allocations: 1.042 MB / 422.1 MB, free: 15.41 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001389/0.3352, allocations: 1.12 MB / 423.2 MB, free: 14.76 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002254/0.3354, allocations: 74 kB / 423.3 MB, free: 14.76 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004534/0.34, allocations: 1.158 MB / 424.4 MB, free: 14.07 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004771/0.3405, allocations: 341.4 kB / 424.7 MB, free: 13.73 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002099/0.3426, allocations: 1.444 MB / 426.2 MB, free: 12.28 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007168/0.3498, allocations: 4.025 MB / 430.2 MB, free: 8.234 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.835e-06/0.3498, allocations: 0 / 430.2 MB, free: 8.234 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.404e-06/0.3498, allocations: 4 kB / 430.2 MB, free: 8.23 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.424e-05/0.3499, allocations: 0 / 430.2 MB, free: 8.23 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.005872/0.3558, allocations: 3.981 MB / 434.2 MB, free: 4.172 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.618e-05/0.3559, allocations: 8.031 kB / 434.2 MB, free: 4.164 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001298/0.356, allocations: 102.5 kB / 434.3 MB, free: 4.055 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005739/0.3566, allocations: 433.2 kB / 434.7 MB, free: 3.629 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00364/0.3602, allocations: 2.522 MB / 437.3 MB, free: 1.039 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.563e-05/0.3603, allocations: 40.98 kB / 437.3 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001308/0.3604, allocations: 55.95 kB / 437.3 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001376/0.3618, allocations: 0.7304 MB / 438.1 MB, free: 208 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.854e-05/0.3619, allocations: 0 / 438.1 MB, free: 208 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.885e-05/0.3619, allocations: 16 kB / 438.1 MB, free: 192 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.501e-05/0.362, allocations: 23.98 kB / 438.1 MB, free: 168 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001573/0.3635, allocations: 0.828 MB / 438.9 MB, free: 15.34 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005481/0.369, allocations: 3.118 MB / 442.1 MB, free: 12.14 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001184/0.3702, allocations: 0.5791 MB / 442.6 MB, free: 11.55 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009617/0.3712, allocations: 0.6477 MB / 443.3 MB, free: 10.9 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0282/0.3994, allocations: 30.18 MB / 473.5 MB, free: 8.613 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007538/0.4002, allocations: 366.3 kB / 473.8 MB, free: 8.242 MB / 398.1 MB Notification: Performance of pre-optimization done (n=49): time 2.555e-06/0.4002, allocations: 0 / 473.8 MB, free: 8.242 MB / 398.1 MB Notification: Performance of matching and sorting (n=49): time 0.002254/0.4025, allocations: 1.126 MB / 475 MB, free: 7.109 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.628e-05/0.4026, allocations: 75.31 kB / 475 MB, free: 7.023 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003504/0.4061, allocations: 3.104 MB / 478.1 MB, free: 3.922 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.64e-05/0.4061, allocations: 37.7 kB / 478.2 MB, free: 3.879 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001244/0.4074, allocations: 1.586 MB / 479.8 MB, free: 2.281 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001574/0.4076, allocations: 174.6 kB / 479.9 MB, free: 2.109 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000292/0.4079, allocations: 230.4 kB / 480.1 MB, free: 1.879 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001145/0.408, allocations: 334 kB / 480.5 MB, free: 1.547 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005854/0.4086, allocations: 253.8 kB / 480.7 MB, free: 1.297 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007727/0.4094, allocations: 0.5942 MB / 481.3 MB, free: 0.5273 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001389/0.4108, allocations: 0.9051 MB / 482.2 MB, free: 15.45 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.247e-06/0.4108, allocations: 11.94 kB / 482.2 MB, free: 15.44 MB / 414.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002178/0.413, allocations: 1.259 MB / 483.5 MB, free: 14.17 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.376e-05/0.413, allocations: 16.03 kB / 483.5 MB, free: 14.16 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001137/0.4131, allocations: 82.75 kB / 483.6 MB, free: 14.08 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.685e-05/0.4132, allocations: 16 kB / 483.6 MB, free: 14.06 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007149/0.4139, allocations: 203.6 kB / 483.8 MB, free: 13.86 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.389e-05/0.4139, allocations: 27.92 kB / 483.8 MB, free: 13.84 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001046/0.415, allocations: 111.2 kB / 483.9 MB, free: 13.73 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001022/0.4151, allocations: 72 kB / 484 MB, free: 13.66 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.0008146/0.4159, allocations: 465.3 kB / 484.5 MB, free: 13.19 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004072/0.4163, allocations: 421.3 kB / 484.9 MB, free: 12.78 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002568/0.4189, allocations: 1.215 MB / 486.1 MB, free: 11.55 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.105e-06/0.4189, allocations: 4 kB / 486.1 MB, free: 11.55 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.99e-06/0.4189, allocations: 0 / 486.1 MB, free: 11.55 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.751e-06/0.4189, allocations: 0 / 486.1 MB, free: 11.55 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003458/0.4224, allocations: 2.155 MB / 488.2 MB, free: 9.328 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.502e-05/0.4225, allocations: 72 kB / 488.3 MB, free: 9.258 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004816/0.423, allocations: 91.98 kB / 488.4 MB, free: 9.168 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.175e-06/0.423, allocations: 11.92 kB / 488.4 MB, free: 9.156 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.86e-05/0.4231, allocations: 28 kB / 488.4 MB, free: 9.129 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.477e-06/0.4231, allocations: 0 / 488.4 MB, free: 9.129 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/0.4231, allocations: 4 kB / 488.5 MB, free: 9.125 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00224/0.4254, allocations: 1.347 MB / 489.8 MB, free: 7.75 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008252/0.4262, allocations: 0.5021 MB / 490.3 MB, free: 7.227 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003046/0.4265, allocations: 15.98 kB / 490.3 MB, free: 7.211 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000714/0.4272, allocations: 29.34 kB / 490.3 MB, free: 7.184 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001478/0.4274, allocations: 67.81 kB / 490.4 MB, free: 7.117 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.688e-05/0.4275, allocations: 40 kB / 490.5 MB, free: 7.078 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002562/0.43, allocations: 2.023 MB / 492.5 MB, free: 5.062 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.43, allocations: 3.938 kB / 492.5 MB, free: 5.059 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001569/0.4316, allocations: 0.6008 MB / 493.1 MB, free: 4.457 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.003562/0.4352, allocations: 2.576 MB / 495.7 MB, free: 1.848 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00159/0.4368, allocations: 0.8209 MB / 496.5 MB, free: 1 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.4368, allocations: 0 / 496.5 MB, free: 1 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007645/0.4376, allocations: 452.4 kB / 496.9 MB, free: 0.5352 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00186/0.4395, allocations: 0.5347 MB / 497.5 MB, free: 0 / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02354/0.463, allocations: 17.17 MB / 0.5026 GB, free: 14.31 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001073/0.4641, allocations: 1.718 MB / 0.5042 GB, free: 12.56 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0009944/0.4651, allocations: 365.4 kB / 0.5046 GB, free: 12.2 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001222/0.4664, allocations: 1.272 MB / 0.5058 GB, free: 10.93 MB / 446.1 MB Notification: Performance of SimCode: time 9.32e-07/0.4664, allocations: 0 / 0.5058 GB, free: 10.93 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2888/0.7552, allocations: 63.26 MB / 0.5676 GB, free: 148.7 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.13/16.88, allocations: 5.547 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 & 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