Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.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.Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Inverter",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.001355/0.001355, allocations: 100.3 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.001309/0.001309, allocations: 196.1 kB / 18.51 MB, free: 4.504 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.403/1.403, allocations: 205.1 MB / 224.4 MB, free: 12.3 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.002821/0.002821, allocations: 52.14 kB / 280.7 MB, free: 3.059 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1199/0.1227, allocations: 46.63 MB / 327.4 MB, free: 4.363 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.009181/0.132, allocations: 7.726 MB / 335.1 MB, free: 12.59 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02142/0.1534, allocations: 18.5 MB / 353.6 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001029/0.1545, allocations: 31.75 kB / 353.6 MB, free: 9.984 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0023/0.1568, allocations: 0.8323 MB / 354.5 MB, free: 9.148 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005175/0.162, allocations: 1.766 MB / 356.2 MB, free: 7.371 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00385/0.1659, allocations: 1.291 MB / 357.5 MB, free: 6.07 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005381/0.1713, allocations: 3.167 MB / 360.7 MB, free: 2.895 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004248/0.1717, allocations: 228.6 kB / 360.9 MB, free: 2.648 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007315/0.1725, allocations: 0.4899 MB / 361.4 MB, free: 2.156 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00068/0.1732, allocations: 0.5512 MB / 362 MB, free: 1.602 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001132/0.1733, allocations: 44 kB / 362 MB, free: 1.559 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003486/0.1768, allocations: 1.128 MB / 363.1 MB, free: 440 kB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001963/0.177, allocations: 182.8 kB / 363.3 MB, free: 256 kB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007385/0.1778, allocations: 0.6794 MB / 364 MB, free: 15.56 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003196/0.181, allocations: 2.211 MB / 366.2 MB, free: 13.35 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.181, allocations: 0 / 366.2 MB, free: 13.35 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.181, allocations: 3.938 kB / 366.2 MB, free: 13.34 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.47e-05/0.181, allocations: 0 / 366.2 MB, free: 13.34 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.003196/0.1842, allocations: 2.031 MB / 368.2 MB, free: 11.25 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.049e-05/0.1843, allocations: 12.03 kB / 368.2 MB, free: 11.24 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.664e-05/0.1844, allocations: 62.53 kB / 368.3 MB, free: 11.17 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002385/0.1846, allocations: 193.7 kB / 368.5 MB, free: 10.98 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002/0.1866, allocations: 1.373 MB / 369.9 MB, free: 9.531 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.831e-05/0.1866, allocations: 16.56 kB / 369.9 MB, free: 9.516 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.155e-05/0.1867, allocations: 35.91 kB / 369.9 MB, free: 9.48 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009305/0.1877, allocations: 429.2 kB / 370.3 MB, free: 9.051 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.32e-05/0.1877, allocations: 0 / 370.3 MB, free: 9.051 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.477e-05/0.1877, allocations: 8 kB / 370.3 MB, free: 9.043 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.684e-05/0.1878, allocations: 15.98 kB / 370.4 MB, free: 9.027 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001161/0.1889, allocations: 474.1 kB / 370.8 MB, free: 8.566 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002845/0.1918, allocations: 1.631 MB / 372.5 MB, free: 6.871 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009755/0.1928, allocations: 375.3 kB / 372.8 MB, free: 6.496 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007799/0.1936, allocations: 409.8 kB / 373.2 MB, free: 6.094 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1542/0.3477, allocations: 15.22 MB / 388.4 MB, free: 48.15 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006773/0.3485, allocations: 256.7 kB / 388.7 MB, free: 48.06 MB / 318.1 MB Notification: Performance of pre-optimization done (n=29): time 2.736e-06/0.3485, allocations: 3.281 kB / 388.7 MB, free: 48.06 MB / 318.1 MB Notification: Performance of matching and sorting (n=29): time 0.002202/0.3507, allocations: 0.8417 MB / 389.5 MB, free: 47.8 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.598e-05/0.3507, allocations: 61.73 kB / 389.6 MB, free: 47.74 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001844/0.3526, allocations: 1.462 MB / 391.1 MB, free: 47.17 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.902e-05/0.3526, allocations: 31.61 kB / 391.1 MB, free: 47.14 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004631/0.3531, allocations: 0.727 MB / 391.8 MB, free: 46.58 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.042e-05/0.3532, allocations: 94.41 kB / 391.9 MB, free: 46.51 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001701/0.3534, allocations: 131 kB / 392 MB, free: 46.45 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.184e-05/0.3534, allocations: 325.3 kB / 392.4 MB, free: 46.13 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004342/0.3539, allocations: 159.1 kB / 392.5 MB, free: 46.09 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005054/0.3544, allocations: 360.8 kB / 392.9 MB, free: 45.8 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009054/0.3553, allocations: 0.5298 MB / 393.4 MB, free: 45.45 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.07e-06/0.3553, allocations: 1.281 kB / 393.4 MB, free: 45.45 MB / 318.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001404/0.3567, allocations: 0.7572 MB / 394.2 MB, free: 45.15 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.026e-05/0.3567, allocations: 8.875 kB / 394.2 MB, free: 45.15 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.166e-05/0.3568, allocations: 41.97 kB / 394.2 MB, free: 45.15 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003116/0.3571, allocations: 132.3 kB / 394.3 MB, free: 45.12 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004067/0.3575, allocations: 105.6 kB / 394.4 MB, free: 45.11 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005101/0.3581, allocations: 0.6882 MB / 395.1 MB, free: 44.54 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005974/0.3587, allocations: 66.97 kB / 395.2 MB, free: 44.51 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.447e-05/0.3588, allocations: 36.42 kB / 395.2 MB, free: 44.51 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * 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 (53): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0003958/0.3592, allocations: 275.9 kB / 395.5 MB, free: 44.3 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001843/0.3593, allocations: 189.1 kB / 395.7 MB, free: 44.2 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001794/0.3611, allocations: 0.7603 MB / 396.4 MB, free: 43.93 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.502e-06/0.3612, allocations: 2.469 kB / 396.4 MB, free: 43.93 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.3612, allocations: 1 kB / 396.4 MB, free: 43.93 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.148e-06/0.3612, allocations: 0 / 396.4 MB, free: 43.93 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001905/0.3631, allocations: 1.318 MB / 397.8 MB, free: 43.04 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.638e-05/0.3632, allocations: 33.06 kB / 397.8 MB, free: 43.04 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002517/0.3634, allocations: 48.52 kB / 397.8 MB, free: 43.02 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002324/0.3637, allocations: 125.5 kB / 398 MB, free: 42.98 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.803e-05/0.3637, allocations: 21.58 kB / 398 MB, free: 42.98 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000447/0.3642, allocations: 0.6689 MB / 398.7 MB, free: 42.4 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/0.3642, allocations: 5.375 kB / 398.7 MB, free: 42.39 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00124/0.3654, allocations: 0.7124 MB / 399.4 MB, free: 41.97 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003858/0.3658, allocations: 279.3 kB / 399.6 MB, free: 41.74 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001619/0.366, allocations: 10.73 kB / 399.7 MB, free: 41.73 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004333/0.3664, allocations: 33.59 kB / 399.7 MB, free: 41.71 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001258/0.3666, allocations: 43.33 kB / 399.7 MB, free: 41.7 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.772e-05/0.3666, allocations: 21.88 kB / 399.8 MB, free: 41.69 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001153/0.3678, allocations: 0.9671 MB / 400.7 MB, free: 41.14 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3678, allocations: 0 / 400.7 MB, free: 41.14 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000886/0.3687, allocations: 335.4 kB / 401 MB, free: 41.11 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * 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 (21): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001948/0.3706, allocations: 1.736 MB / 402.8 MB, free: 40 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001229/0.3719, allocations: 0.5296 MB / 403.3 MB, free: 39.75 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.3719, allocations: 0 / 403.3 MB, free: 39.75 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005815/0.3725, allocations: 291.5 kB / 403.6 MB, free: 39.6 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009715/0.3735, allocations: 260.6 kB / 403.9 MB, free: 39.45 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01084/0.3843, allocations: 10.08 MB / 413.9 MB, free: 28.76 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003963/0.3848, allocations: 1.153 MB / 415.1 MB, free: 27.58 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0006135/0.3854, allocations: 202.2 kB / 415.3 MB, free: 27.38 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004042/0.3858, allocations: 0.5618 MB / 415.8 MB, free: 26.82 MB / 318.1 MB Notification: Performance of SimCode: time 9.71e-07/0.3858, allocations: 0 / 415.8 MB, free: 26.82 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06542/0.4512, allocations: 35.13 MB / 451 MB, free: 7.594 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.28/12.73, allocations: 7.875 kB / 451 MB, free: 7.586 MB / 334.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter_res.csv --start-time 0 --stop-time 1e-11 --timeout 50 --relative-tolerance 1e-07 --interface-type ModelExchange --solver CVode --output-interval 5.0025e-15 Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Inverter.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/Inverter/Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches