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.001138/0.001139, allocations: 109 kB / 17.05 MB, free: 6.055 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.001094/0.001094, allocations: 195.9 kB / 17.99 MB, free: 5.156 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.32/1.32, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0011/0.0011, allocations: 43.91 kB / 350.8 MB, free: 3.734 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2645/0.2656, allocations: 49.44 MB / 400.2 MB, free: 8.391 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.02256/0.2882, allocations: 26.71 MB / 426.9 MB, free: 13.98 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02891/0.3172, allocations: 22.35 MB / 449.3 MB, free: 7.543 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00603/0.3232, allocations: 178.6 kB / 449.4 MB, free: 7.367 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005337/0.3287, allocations: 1.78 MB / 451.2 MB, free: 5.574 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01276/0.3415, allocations: 3.247 MB / 454.5 MB, free: 2.305 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006631/0.3481, allocations: 1.627 MB / 456.1 MB, free: 0.6719 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.02209/0.3703, allocations: 12.67 MB / 468.8 MB, free: 3.957 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001901/0.3722, allocations: 0.8669 MB / 469.6 MB, free: 3.051 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003868/0.3761, allocations: 2.107 MB / 471.7 MB, free: 0.9336 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003295/0.3794, allocations: 2.104 MB / 473.9 MB, free: 14.81 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000637/0.3801, allocations: 136 kB / 474 MB, free: 14.68 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00516/0.3853, allocations: 1.533 MB / 475.5 MB, free: 13.15 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009503/0.3863, allocations: 0.5971 MB / 476.1 MB, free: 12.55 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00377/0.39, allocations: 2.624 MB / 478.7 MB, free: 9.906 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01119/0.4013, allocations: 6.667 MB / 485.4 MB, free: 3.207 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.675e-06/0.4013, allocations: 0 / 485.4 MB, free: 3.207 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.933e-06/0.4013, allocations: 0 / 485.4 MB, free: 3.207 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002564/0.4016, allocations: 0 / 485.4 MB, free: 3.207 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.01226/0.4139, allocations: 6.927 MB / 492.3 MB, free: 12.18 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.095e-05/0.4139, allocations: 15.97 kB / 492.3 MB, free: 12.16 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002879/0.4142, allocations: 157.2 kB / 492.5 MB, free: 12 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00133/0.4156, allocations: 0.7764 MB / 493.3 MB, free: 11.22 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008729/0.4243, allocations: 4.652 MB / 497.9 MB, free: 6.484 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.089e-05/0.4245, allocations: 73.94 kB / 498 MB, free: 6.41 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002901/0.4248, allocations: 103.8 kB / 498.1 MB, free: 6.309 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002365/0.4271, allocations: 1.301 MB / 499.4 MB, free: 4.992 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.242e-05/0.4272, allocations: 0 / 499.4 MB, free: 4.992 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001158/0.4273, allocations: 36 kB / 499.4 MB, free: 4.957 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.883e-05/0.4273, allocations: 35.97 kB / 499.5 MB, free: 4.922 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002494/0.4298, allocations: 1.484 MB / 0.4892 GB, free: 3.438 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01172/0.4416, allocations: 5.62 MB / 0.4947 GB, free: 13.73 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001773/0.4434, allocations: 0.9928 MB / 0.4957 GB, free: 12.72 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001665/0.4451, allocations: 1.22 MB / 0.4969 GB, free: 11.51 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2597/0.7048, allocations: 59.81 MB / 0.5553 GB, free: 117 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009272/0.7058, allocations: 0.5649 MB / 0.5558 GB, free: 116.7 MB / 462.1 MB Notification: Performance of pre-optimization done (n=85): time 3.957e-06/0.7058, allocations: 0 / 0.5558 GB, free: 116.7 MB / 462.1 MB Notification: Performance of matching and sorting (n=85): time 0.00313/0.7089, allocations: 1.904 MB / 0.5577 GB, free: 116.2 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.082e-05/0.709, allocations: 70.61 kB / 0.5578 GB, free: 116.1 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005697/0.7147, allocations: 5.585 MB / 0.5632 GB, free: 112.9 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001813/0.7149, allocations: 41.53 kB / 0.5632 GB, free: 112.8 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00197/0.7169, allocations: 2.971 MB / 0.5661 GB, free: 110 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004748/0.7174, allocations: 306.8 kB / 0.5664 GB, free: 109.7 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005721/0.718, allocations: 433 kB / 0.5669 GB, free: 109.3 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 7.087e-05/0.7181, allocations: 301.1 kB / 0.5671 GB, free: 109 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008124/0.7189, allocations: 404.8 kB / 0.5675 GB, free: 108.6 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001097/0.72, allocations: 1.088 MB / 0.5686 GB, free: 107.2 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001833/0.7218, allocations: 1.609 MB / 0.5702 GB, free: 105.3 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.151e-05/0.7219, allocations: 9.875 kB / 0.5702 GB, free: 105.3 MB / 462.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.003474/0.7253, allocations: 2.242 MB / 0.5724 GB, free: 103.1 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.129e-05/0.7254, allocations: 19.94 kB / 0.5724 GB, free: 103.1 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000193/0.7256, allocations: 160 kB / 0.5725 GB, free: 102.9 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.529e-05/0.7256, allocations: 36 kB / 0.5726 GB, free: 102.9 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001032/0.7267, allocations: 359.2 kB / 0.5729 GB, free: 102.5 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.893e-05/0.7267, allocations: 47.8 kB / 0.573 GB, free: 102.5 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002132/0.7289, allocations: 188.3 kB / 0.5731 GB, free: 102.3 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001864/0.7291, allocations: 128 kB / 0.5733 GB, free: 102.2 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.001235/0.7303, allocations: 0.7179 MB / 0.574 GB, free: 101.5 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009667/0.7313, allocations: 0.753 MB / 0.5747 GB, free: 100.7 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003842/0.7351, allocations: 2.148 MB / 0.5768 GB, free: 98.66 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.759e-06/0.7351, allocations: 8 kB / 0.5768 GB, free: 98.65 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.7e-06/0.7352, allocations: 0 / 0.5768 GB, free: 98.65 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.174e-06/0.7352, allocations: 3.984 kB / 0.5768 GB, free: 98.64 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004987/0.7402, allocations: 3.613 MB / 0.5803 GB, free: 95 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001532/0.7403, allocations: 144 kB / 0.5805 GB, free: 94.86 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007255/0.7411, allocations: 147.8 kB / 0.5806 GB, free: 94.71 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.855e-06/0.7411, allocations: 4 kB / 0.5806 GB, free: 94.71 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.407e-05/0.7412, allocations: 63.98 kB / 0.5807 GB, free: 94.65 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.61e-06/0.7412, allocations: 4 kB / 0.5807 GB, free: 94.64 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.7412, allocations: 0 / 0.5807 GB, free: 94.64 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002949/0.7442, allocations: 2.188 MB / 0.5828 GB, free: 92.43 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001645/0.7458, allocations: 0.8592 MB / 0.5837 GB, free: 91.56 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005959/0.7464, allocations: 18 kB / 0.5837 GB, free: 91.55 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001124/0.7475, allocations: 31.95 kB / 0.5837 GB, free: 91.52 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001809/0.7477, allocations: 100.5 kB / 0.5838 GB, free: 91.41 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001041/0.7479, allocations: 71.98 kB / 0.5839 GB, free: 91.34 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004231/0.7521, allocations: 3.604 MB / 0.5874 GB, free: 87.77 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.7521, allocations: 0 / 0.5874 GB, free: 87.77 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00249/0.7546, allocations: 1.083 MB / 0.5884 GB, free: 86.75 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.004474/0.7591, allocations: 3.845 MB / 0.5922 GB, free: 82.94 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.002069/0.7612, allocations: 1.427 MB / 0.5936 GB, free: 81.46 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.7612, allocations: 4 kB / 0.5936 GB, free: 81.46 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009144/0.7621, allocations: 0.7714 MB / 0.5943 GB, free: 80.64 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004657/0.7668, allocations: 1.175 MB / 0.5955 GB, free: 79.47 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03969/0.8065, allocations: 30.56 MB / 0.6253 GB, free: 48.12 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001234/0.8078, allocations: 2.595 MB / 0.6279 GB, free: 45.5 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001795/0.8096, allocations: 0.6846 MB / 0.6285 GB, free: 44.81 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001678/0.8113, allocations: 2.389 MB / 0.6309 GB, free: 42.42 MB / 462.1 MB Notification: Performance of SimCode: time 1.062e-06/0.8113, allocations: 0 / 0.6309 GB, free: 42.42 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3749/1.186, allocations: 110.9 MB / 0.7391 GB, free: 162.1 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.29/26.48, allocations: 7.828 kB / 0.7391 GB, free: 162.1 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