Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 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.InvertersExtendedModel,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,fileNamePrefix="Modelica_4_0_0_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.001509/0.001509, allocations: 109.3 kB / 17.06 MB, free: 5.992 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.001757/0.001757, allocations: 200 kB / 18.01 MB, free: 5.066 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.342/1.342, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001147/0.001147, allocations: 47.94 kB / 350.8 MB, free: 3.742 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2737/0.2749, allocations: 49.43 MB / 400.2 MB, free: 8.387 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01414/0.2891, allocations: 15.32 MB / 415.5 MB, free: 9.418 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0239/0.313, allocations: 20.75 MB / 436.3 MB, free: 4.586 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002947/0.316, allocations: 87.25 kB / 436.4 MB, free: 4.5 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003631/0.3197, allocations: 1.274 MB / 437.6 MB, free: 3.223 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008399/0.3281, allocations: 2.359 MB / 440 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004974/0.3331, allocations: 1.443 MB / 441.5 MB, free: 15.39 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01006/0.3432, allocations: 6.601 MB / 448.1 MB, free: 8.77 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008518/0.3441, allocations: 469.5 kB / 448.5 MB, free: 8.285 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001567/0.3457, allocations: 1.139 MB / 449.6 MB, free: 7.141 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001157/0.3468, allocations: 1.153 MB / 450.8 MB, free: 5.98 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000156/0.347, allocations: 72 kB / 450.9 MB, free: 5.91 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003835/0.3508, allocations: 1.479 MB / 452.4 MB, free: 4.43 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003467/0.3512, allocations: 333.5 kB / 452.7 MB, free: 4.102 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001413/0.3526, allocations: 1.432 MB / 454.1 MB, free: 2.66 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005727/0.3584, allocations: 3.997 MB / 458.1 MB, free: 14.64 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.121e-06/0.3584, allocations: 4 kB / 458.1 MB, free: 14.64 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.3584, allocations: 0 / 458.1 MB, free: 14.64 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.424e-05/0.3585, allocations: 0 / 458.1 MB, free: 14.64 MB / 382.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.00553/0.364, allocations: 3.962 MB / 462.1 MB, free: 10.6 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.571e-05/0.3641, allocations: 8.031 kB / 462.1 MB, free: 10.59 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001272/0.3642, allocations: 102.5 kB / 462.2 MB, free: 10.48 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004173/0.3646, allocations: 433.2 kB / 462.6 MB, free: 10.05 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003409/0.3681, allocations: 2.518 MB / 465.1 MB, free: 7.469 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.619e-05/0.3681, allocations: 37 kB / 465.2 MB, free: 7.434 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001338/0.3682, allocations: 59.94 kB / 465.2 MB, free: 7.375 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001347/0.3696, allocations: 0.7265 MB / 465.9 MB, free: 6.641 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.614e-05/0.3696, allocations: 0 / 465.9 MB, free: 6.641 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.157e-05/0.3697, allocations: 20 kB / 466 MB, free: 6.621 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.153e-05/0.3697, allocations: 19.98 kB / 466 MB, free: 6.602 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001526/0.3713, allocations: 0.8163 MB / 466.8 MB, free: 5.785 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005097/0.3764, allocations: 3.099 MB / 469.9 MB, free: 2.602 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001172/0.3776, allocations: 0.5829 MB / 470.5 MB, free: 2.012 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009729/0.3785, allocations: 0.6445 MB / 471.1 MB, free: 1.367 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0311/0.4097, allocations: 30.13 MB / 0.4895 GB, free: 15.12 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008251/0.4105, allocations: 365.6 kB / 0.4899 GB, free: 14.76 MB / 430.1 MB Notification: Performance of pre-optimization done (n=49): time 2.835e-06/0.4106, allocations: 4 kB / 0.4899 GB, free: 14.75 MB / 430.1 MB Notification: Performance of matching and sorting (n=49): time 0.002626/0.4132, allocations: 1.122 MB / 0.491 GB, free: 13.62 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.574e-05/0.4132, allocations: 63.39 kB / 0.491 GB, free: 13.55 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003677/0.4169, allocations: 3.094 MB / 0.494 GB, free: 10.45 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 7.148e-05/0.417, allocations: 33.7 kB / 0.4941 GB, free: 10.41 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001288/0.4183, allocations: 1.582 MB / 0.4956 GB, free: 8.824 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001651/0.4185, allocations: 174.5 kB / 0.4958 GB, free: 8.652 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003082/0.4188, allocations: 234.3 kB / 0.496 GB, free: 8.418 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000123/0.4189, allocations: 337.9 kB / 0.4963 GB, free: 8.082 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000583/0.4195, allocations: 245.9 kB / 0.4966 GB, free: 7.844 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008032/0.4203, allocations: 0.602 MB / 0.4972 GB, free: 7.066 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001395/0.4217, allocations: 0.909 MB / 0.498 GB, free: 5.984 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.445e-06/0.4218, allocations: 4 kB / 0.498 GB, free: 5.98 MB / 430.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002254/0.424, allocations: 1.255 MB / 0.4993 GB, free: 4.723 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.662e-05/0.4241, allocations: 12 kB / 0.4993 GB, free: 4.711 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000107/0.4242, allocations: 80 kB / 0.4994 GB, free: 4.633 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.862e-05/0.4242, allocations: 16 kB / 0.4994 GB, free: 4.617 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006952/0.4249, allocations: 199.7 kB / 0.4996 GB, free: 4.422 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.675e-05/0.4249, allocations: 31.86 kB / 0.4996 GB, free: 4.391 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001178/0.4261, allocations: 107.4 kB / 0.4997 GB, free: 4.285 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001016/0.4262, allocations: 68 kB / 0.4998 GB, free: 4.219 MB / 430.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.0007493/0.427, allocations: 449.4 kB / 0.5002 GB, free: 3.77 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000373/0.4274, allocations: 421.4 kB / 0.5006 GB, free: 3.355 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002437/0.4298, allocations: 1.215 MB / 0.5018 GB, free: 2.121 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.877e-06/0.4298, allocations: 4 kB / 0.5018 GB, free: 2.117 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.77e-06/0.4299, allocations: 0 / 0.5018 GB, free: 2.117 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.156e-06/0.4299, allocations: 3.984 kB / 0.5018 GB, free: 2.113 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003399/0.4333, allocations: 2.147 MB / 0.5039 GB, free: 15.9 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.798e-05/0.4334, allocations: 68 kB / 0.5039 GB, free: 15.83 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004712/0.4339, allocations: 99.91 kB / 0.504 GB, free: 15.73 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.345e-06/0.4339, allocations: 4 kB / 0.504 GB, free: 15.73 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.389e-05/0.4339, allocations: 32 kB / 0.5041 GB, free: 15.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.998e-06/0.4339, allocations: 0 / 0.5041 GB, free: 15.7 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/0.434, allocations: 4 kB / 0.5041 GB, free: 15.7 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002218/0.4362, allocations: 1.343 MB / 0.5054 GB, free: 14.32 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008769/0.4371, allocations: 0.5139 MB / 0.5059 GB, free: 13.79 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002966/0.4374, allocations: 8 kB / 0.5059 GB, free: 13.78 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006875/0.4381, allocations: 27.97 kB / 0.5059 GB, free: 13.75 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001432/0.4382, allocations: 67.88 kB / 0.506 GB, free: 13.69 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.177e-05/0.4383, allocations: 40 kB / 0.506 GB, free: 13.65 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002703/0.441, allocations: 2.007 MB / 0.508 GB, free: 11.65 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.441, allocations: 0 / 0.508 GB, free: 11.65 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001462/0.4425, allocations: 0.5969 MB / 0.5086 GB, free: 11.05 MB / 446.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.003538/0.446, allocations: 2.569 MB / 0.5111 GB, free: 8.453 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001681/0.4477, allocations: 0.8097 MB / 0.5119 GB, free: 7.617 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.488e-06/0.4478, allocations: 0 / 0.5119 GB, free: 7.617 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007459/0.4485, allocations: 450.9 kB / 0.5123 GB, free: 7.152 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002707/0.4512, allocations: 0.6398 MB / 0.5129 GB, free: 6.508 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02801/0.4792, allocations: 17.06 MB / 0.5296 GB, free: 4.938 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001719/0.481, allocations: 1.706 MB / 0.5313 GB, free: 3.203 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001289/0.4823, allocations: 365.3 kB / 0.5316 GB, free: 2.84 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001467/0.4838, allocations: 1.261 MB / 0.5328 GB, free: 1.578 MB / 462.1 MB Notification: Performance of SimCode: time 1.283e-06/0.4838, allocations: 0 / 0.5328 GB, free: 1.578 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3059/0.7897, allocations: 62.89 MB / 0.5942 GB, free: 83.92 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.82/16.61, allocations: 15.86 kB / 0.5943 GB, free: 83.91 MB / 462.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/InvertersExtendedModel/InvertersExtendedModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches