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.001345/0.001345, allocations: 109.4 kB / 17.73 MB, free: 5.352 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.001308/0.001308, allocations: 180.1 kB / 18.66 MB, free: 4.426 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.424/1.424, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001677/0.001677, allocations: 55.92 kB / 328 MB, free: 3.824 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0991/0.1008, allocations: 46.62 MB / 374.6 MB, free: 5.094 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.2023/0.3031, allocations: 7.718 MB / 382.4 MB, free: 9.102 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01765/0.3208, allocations: 18.52 MB / 400.9 MB, free: 12.26 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001097/0.3219, allocations: 63.62 kB / 400.9 MB, free: 12.23 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002439/0.3244, allocations: 0.8284 MB / 401.8 MB, free: 11.78 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007914/0.3323, allocations: 1.769 MB / 403.5 MB, free: 10.73 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005045/0.3374, allocations: 1.281 MB / 404.8 MB, free: 10.04 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005893/0.3433, allocations: 3.182 MB / 408 MB, free: 8.879 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004462/0.3438, allocations: 223.8 kB / 408.2 MB, free: 8.766 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009002/0.3447, allocations: 0.5062 MB / 408.7 MB, free: 8.562 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007586/0.3455, allocations: 0.551 MB / 409.3 MB, free: 8.293 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001203/0.3456, allocations: 40.75 kB / 409.3 MB, free: 8.293 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004797/0.3504, allocations: 1.131 MB / 410.4 MB, free: 8.07 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002856/0.3507, allocations: 169 kB / 410.6 MB, free: 7.957 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009971/0.3517, allocations: 0.6777 MB / 411.3 MB, free: 7.531 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004605/0.3563, allocations: 2.253 MB / 413.5 MB, free: 6.195 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.3564, allocations: 0 / 413.5 MB, free: 6.195 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.3564, allocations: 0 / 413.5 MB, free: 6.195 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.26e-05/0.3564, allocations: 0 / 413.5 MB, free: 6.195 MB / 334.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.00344/0.3599, allocations: 2.082 MB / 415.6 MB, free: 4.586 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.639e-05/0.3599, allocations: 9.812 kB / 415.6 MB, free: 4.586 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.122e-05/0.36, allocations: 68.16 kB / 415.7 MB, free: 4.52 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002804/0.3603, allocations: 210.2 kB / 415.9 MB, free: 4.406 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001906/0.3622, allocations: 1.371 MB / 417.3 MB, free: 3.312 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.172e-05/0.3623, allocations: 19.25 kB / 417.3 MB, free: 3.305 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.164e-05/0.3623, allocations: 30.61 kB / 417.3 MB, free: 3.293 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009015/0.3632, allocations: 426.3 kB / 417.7 MB, free: 3.043 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.544e-05/0.3633, allocations: 1.812 kB / 417.7 MB, free: 3.043 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.263e-05/0.3633, allocations: 14.06 kB / 417.8 MB, free: 3.031 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.534e-05/0.3633, allocations: 13.8 kB / 417.8 MB, free: 3.023 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001066/0.3644, allocations: 474.1 kB / 418.2 MB, free: 2.836 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002779/0.3672, allocations: 1.63 MB / 419.9 MB, free: 1.656 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009571/0.3682, allocations: 380.2 kB / 420.2 MB, free: 1.449 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007176/0.3689, allocations: 411.3 kB / 420.6 MB, free: 1.266 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01681/0.3857, allocations: 15.23 MB / 435.9 MB, free: 316 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006604/0.3864, allocations: 267 kB / 436.1 MB, free: 36 kB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 2.745e-06/0.3864, allocations: 0 / 436.1 MB, free: 36 kB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.00239/0.3888, allocations: 0.8534 MB / 437 MB, free: 15.15 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.156e-05/0.3889, allocations: 59.41 kB / 437 MB, free: 15.08 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002146/0.3911, allocations: 1.46 MB / 438.5 MB, free: 13.59 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.953e-05/0.3911, allocations: 33.7 kB / 438.5 MB, free: 13.55 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006698/0.3918, allocations: 0.7272 MB / 439.3 MB, free: 12.81 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001057/0.3919, allocations: 99.16 kB / 439.4 MB, free: 12.71 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002064/0.3921, allocations: 130.1 kB / 439.5 MB, free: 12.58 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001411/0.3923, allocations: 329.9 kB / 439.8 MB, free: 12.25 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004783/0.3928, allocations: 161 kB / 440 MB, free: 12.1 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006172/0.3934, allocations: 363.4 kB / 440.3 MB, free: 11.65 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001098/0.3945, allocations: 0.5256 MB / 440.8 MB, free: 11.03 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.335e-06/0.3945, allocations: 4.875 kB / 440.8 MB, free: 11.03 MB / 366.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.00171/0.3962, allocations: 0.7636 MB / 441.6 MB, free: 10.25 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.063e-05/0.3963, allocations: 8 kB / 441.6 MB, free: 10.25 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.637e-05/0.3963, allocations: 39.98 kB / 441.7 MB, free: 10.21 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003467/0.3967, allocations: 145.4 kB / 441.8 MB, free: 10.06 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004176/0.3971, allocations: 103.8 kB / 441.9 MB, free: 9.961 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006909/0.3978, allocations: 0.685 MB / 442.6 MB, free: 9.25 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009005/0.3987, allocations: 70.64 kB / 442.7 MB, free: 9.184 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.572e-05/0.3988, allocations: 40 kB / 442.7 MB, free: 9.145 MB / 366.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.0004664/0.3993, allocations: 273.5 kB / 443 MB, free: 8.867 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003925/0.3997, allocations: 202.7 kB / 443.2 MB, free: 8.668 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00198/0.4017, allocations: 0.7462 MB / 443.9 MB, free: 7.914 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.083e-05/0.4017, allocations: 4 kB / 443.9 MB, free: 7.91 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.713e-06/0.4017, allocations: 0 / 443.9 MB, free: 7.91 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.193e-06/0.4017, allocations: 3.984 kB / 443.9 MB, free: 7.906 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00267/0.4044, allocations: 1.315 MB / 445.2 MB, free: 6.52 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.086e-05/0.4045, allocations: 32 kB / 445.3 MB, free: 6.488 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002588/0.4047, allocations: 51.89 kB / 445.3 MB, free: 6.438 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000262/0.405, allocations: 120.8 kB / 445.4 MB, free: 6.316 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.851e-05/0.4051, allocations: 20.06 kB / 445.4 MB, free: 6.297 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000644/0.4057, allocations: 0.6733 MB / 446.1 MB, free: 5.598 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-06/0.4057, allocations: 3.938 kB / 446.1 MB, free: 5.594 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001484/0.4072, allocations: 0.7327 MB / 446.9 MB, free: 4.832 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005967/0.4078, allocations: 291.7 kB / 447.1 MB, free: 4.527 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002747/0.4081, allocations: 8 kB / 447.2 MB, free: 4.52 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005031/0.4086, allocations: 35.95 kB / 447.2 MB, free: 4.484 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001254/0.4088, allocations: 31.97 kB / 447.2 MB, free: 4.453 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.177e-05/0.4088, allocations: 27.98 kB / 447.2 MB, free: 4.426 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001342/0.4102, allocations: 0.9614 MB / 448.2 MB, free: 3.445 MB / 366.1 MB Notification: Performance of sort global known variables: time 2e-07/0.4102, allocations: 0 / 448.2 MB, free: 3.445 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00105/0.4112, allocations: 339.5 kB / 448.5 MB, free: 3.113 MB / 366.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.002698/0.4139, allocations: 1.748 MB / 450.3 MB, free: 1.328 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001355/0.4153, allocations: 0.5122 MB / 450.8 MB, free: 0.8047 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.4153, allocations: 0 / 450.8 MB, free: 0.8047 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006843/0.416, allocations: 291.5 kB / 451.1 MB, free: 0.5078 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001147/0.4172, allocations: 263.3 kB / 451.3 MB, free: 256 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01427/0.4315, allocations: 9.062 MB / 460.4 MB, free: 6.805 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008516/0.4323, allocations: 1.153 MB / 461.6 MB, free: 5.621 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005566/0.4329, allocations: 199.9 kB / 461.8 MB, free: 5.422 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006553/0.4336, allocations: 0.5617 MB / 462.3 MB, free: 4.863 MB / 382.1 MB Notification: Performance of SimCode: time 8.71e-07/0.4336, allocations: 0 / 462.3 MB, free: 4.863 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1058/0.5394, allocations: 35.48 MB / 497.8 MB, free: 1.289 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.52/15.06, allocations: 11.83 kB / 497.8 MB, free: 1.277 MB / 414.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