Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_4_0_0_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.001796/0.001796, allocations: 108.3 kB / 17.06 MB, free: 5.961 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.001965/0.001965, allocations: 200 kB / 18.01 MB, free: 5.039 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.398/1.398, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001424/0.001424, allocations: 47.92 kB / 350.8 MB, free: 3.742 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.252/0.2535, allocations: 49.44 MB / 400.2 MB, free: 8.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.02675/0.2802, allocations: 26.71 MB / 426.9 MB, free: 14.13 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.03165/0.3119, allocations: 22.34 MB / 449.3 MB, free: 7.699 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005692/0.3177, allocations: 178.5 kB / 449.5 MB, free: 7.523 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005267/0.323, allocations: 1.78 MB / 451.2 MB, free: 5.73 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01165/0.3347, allocations: 3.204 MB / 454.4 MB, free: 2.504 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005894/0.3406, allocations: 1.623 MB / 456.1 MB, free: 0.875 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.02161/0.3623, allocations: 12.68 MB / 468.7 MB, free: 4.156 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00192/0.3642, allocations: 0.8708 MB / 469.6 MB, free: 3.246 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003858/0.3681, allocations: 2.061 MB / 471.7 MB, free: 1.176 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004463/0.3726, allocations: 2.103 MB / 473.8 MB, free: 15.06 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000719/0.3733, allocations: 136 kB / 473.9 MB, free: 14.93 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005639/0.379, allocations: 1.53 MB / 475.4 MB, free: 13.39 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009761/0.38, allocations: 0.601 MB / 476 MB, free: 12.79 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003918/0.3839, allocations: 2.628 MB / 478.7 MB, free: 10.14 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01054/0.3945, allocations: 6.663 MB / 485.3 MB, free: 3.449 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.571e-06/0.3945, allocations: 4 kB / 485.3 MB, free: 3.445 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.3945, allocations: 0 / 485.3 MB, free: 3.445 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0001761/0.3947, allocations: 0 / 485.3 MB, free: 3.445 MB / 398.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.01035/0.4051, allocations: 6.93 MB / 492.3 MB, free: 12.41 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.431e-05/0.4051, allocations: 8.031 kB / 492.3 MB, free: 12.41 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002136/0.4054, allocations: 165.1 kB / 492.4 MB, free: 12.23 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009685/0.4063, allocations: 0.7764 MB / 493.2 MB, free: 11.45 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006919/0.4133, allocations: 4.656 MB / 497.9 MB, free: 6.715 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.564e-05/0.4133, allocations: 66 kB / 497.9 MB, free: 6.648 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002153/0.4136, allocations: 103.8 kB / 498 MB, free: 6.547 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002358/0.4159, allocations: 1.301 MB / 499.3 MB, free: 5.23 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.074e-05/0.416, allocations: 0 / 499.3 MB, free: 5.23 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001198/0.4161, allocations: 36 kB / 499.4 MB, free: 5.195 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.845e-05/0.4161, allocations: 39.97 kB / 499.4 MB, free: 5.156 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002679/0.4188, allocations: 1.488 MB / 0.4892 GB, free: 3.668 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009867/0.4287, allocations: 5.616 MB / 0.4946 GB, free: 13.96 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001877/0.4306, allocations: 0.989 MB / 0.4956 GB, free: 12.96 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0018/0.4324, allocations: 1.216 MB / 0.4968 GB, free: 11.75 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2328/0.6652, allocations: 59.81 MB / 0.5552 GB, free: 117.1 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008561/0.6661, allocations: 0.5605 MB / 0.5557 GB, free: 116.8 MB / 462.1 MB Notification: Performance of pre-optimization done (n=85): time 3.056e-06/0.6661, allocations: 0 / 0.5557 GB, free: 116.8 MB / 462.1 MB Notification: Performance of matching and sorting (n=85): time 0.002835/0.669, allocations: 1.911 MB / 0.5576 GB, free: 116.3 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.882e-05/0.669, allocations: 71.55 kB / 0.5577 GB, free: 116.2 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005307/0.6743, allocations: 5.584 MB / 0.5631 GB, free: 113 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001101/0.6744, allocations: 41.7 kB / 0.5632 GB, free: 113 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001598/0.6761, allocations: 2.968 MB / 0.5661 GB, free: 110.1 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002169/0.6763, allocations: 314.3 kB / 0.5664 GB, free: 109.8 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003777/0.6767, allocations: 427 kB / 0.5668 GB, free: 109.4 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.738e-05/0.6767, allocations: 301.1 kB / 0.5671 GB, free: 109.1 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007194/0.6774, allocations: 406.6 kB / 0.5674 GB, free: 108.7 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009131/0.6784, allocations: 1.085 MB / 0.5685 GB, free: 107.3 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001698/0.6801, allocations: 1.619 MB / 0.5701 GB, free: 105.5 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.556e-06/0.6801, allocations: 4 kB / 0.5701 GB, free: 105.5 MB / 462.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.002882/0.683, allocations: 2.238 MB / 0.5723 GB, free: 103.2 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.397e-05/0.683, allocations: 19.94 kB / 0.5723 GB, free: 103.2 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000144/0.6832, allocations: 164 kB / 0.5725 GB, free: 103 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.683e-05/0.6832, allocations: 41.12 kB / 0.5725 GB, free: 103 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001017/0.6842, allocations: 351.4 kB / 0.5728 GB, free: 102.7 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.04e-05/0.6843, allocations: 51.8 kB / 0.5729 GB, free: 102.6 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001819/0.6861, allocations: 188.1 kB / 0.5731 GB, free: 102.5 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001522/0.6862, allocations: 128 kB / 0.5732 GB, free: 102.4 MB / 462.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.001196/0.6875, allocations: 0.7119 MB / 0.5739 GB, free: 101.7 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006819/0.6881, allocations: 0.753 MB / 0.5746 GB, free: 100.9 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003705/0.6919, allocations: 2.155 MB / 0.5767 GB, free: 98.81 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.057e-06/0.6919, allocations: 8 kB / 0.5767 GB, free: 98.8 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.561e-06/0.6919, allocations: 0 / 0.5767 GB, free: 98.8 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.365e-06/0.6919, allocations: 7.984 kB / 0.5767 GB, free: 98.79 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004535/0.6964, allocations: 3.603 MB / 0.5802 GB, free: 95.16 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001279/0.6966, allocations: 140 kB / 0.5804 GB, free: 95.02 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006918/0.6973, allocations: 147.9 kB / 0.5805 GB, free: 94.88 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.191e-06/0.6973, allocations: 4 kB / 0.5805 GB, free: 94.87 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.514e-05/0.6974, allocations: 63.98 kB / 0.5806 GB, free: 94.81 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.28e-06/0.6974, allocations: 7.828 kB / 0.5806 GB, free: 94.8 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.6974, allocations: 3.938 kB / 0.5806 GB, free: 94.8 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002736/0.7001, allocations: 2.192 MB / 0.5827 GB, free: 92.59 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001186/0.7013, allocations: 0.8553 MB / 0.5836 GB, free: 91.72 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005327/0.7019, allocations: 15.94 kB / 0.5836 GB, free: 91.7 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001015/0.7029, allocations: 39.95 kB / 0.5836 GB, free: 91.66 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001969/0.7031, allocations: 92.02 kB / 0.5837 GB, free: 91.57 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001055/0.7032, allocations: 71.98 kB / 0.5838 GB, free: 91.5 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003651/0.7069, allocations: 3.604 MB / 0.5873 GB, free: 87.93 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.7069, allocations: 7.938 kB / 0.5873 GB, free: 87.92 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001868/0.7088, allocations: 1.083 MB / 0.5884 GB, free: 86.91 MB / 462.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.004028/0.7128, allocations: 3.841 MB / 0.5921 GB, free: 83.09 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00197/0.7148, allocations: 1.432 MB / 0.5935 GB, free: 81.61 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.7148, allocations: 3.938 kB / 0.5935 GB, free: 81.61 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008691/0.7157, allocations: 0.7667 MB / 0.5943 GB, free: 80.8 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004191/0.7199, allocations: 1.177 MB / 0.5954 GB, free: 79.62 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03494/0.7548, allocations: 30.57 MB / 0.6253 GB, free: 48.26 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001263/0.7561, allocations: 2.588 MB / 0.6278 GB, free: 45.65 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001925/0.7581, allocations: 0.6846 MB / 0.6285 GB, free: 44.96 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001742/0.7598, allocations: 2.389 MB / 0.6308 GB, free: 42.57 MB / 462.1 MB Notification: Performance of SimCode: time 1.362e-06/0.7598, allocations: 3.938 kB / 0.6308 GB, free: 42.57 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3641/1.124, allocations: 110.8 MB / 0.7391 GB, free: 162.4 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.89/27.02, allocations: 3.828 kB / 0.7391 GB, free: 162.4 MB / 0.4981 GB (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Electrical_Spice3_Examples_FourInverters.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/FourInverters/FourInverters.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches