Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) 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(PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Inverters_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Inverters_Rectifier",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.001744/0.001744, allocations: 112.3 kB / 17.06 MB, free: 5.965 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.001794/0.001794, allocations: 196 kB / 18.01 MB, free: 5.051 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.472/1.472, allocations: 222.9 MB / 241.7 MB, free: 15.06 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1876/0.1876, allocations: 38.04 MB / 329.9 MB, free: 8.723 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001945/0.001945, allocations: 67.91 kB / 457.7 MB, free: 7.32 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3829/0.3848, allocations: 58.06 MB / 0.5036 GB, free: 7.352 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier): time 0.006989/0.3919, allocations: 6.252 MB / 0.5097 GB, free: 3.012 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002694/0.3946, allocations: 1.416 MB / 0.5111 GB, free: 2.008 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003536/0.395, allocations: 23.22 kB / 0.5111 GB, free: 2 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005308/0.3956, allocations: 140.5 kB / 0.5113 GB, free: 1.922 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009478/0.3965, allocations: 416.7 kB / 0.5117 GB, free: 1.684 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005627/0.3971, allocations: 193.8 kB / 0.5119 GB, free: 1.586 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001367/0.3985, allocations: 1.085 MB / 0.5129 GB, free: 1.105 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004886/0.399, allocations: 354.3 kB / 0.5133 GB, free: 0.9805 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008373/0.3998, allocations: 467.1 kB / 0.5137 GB, free: 0.7734 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000912/0.4008, allocations: 0.5218 MB / 0.5142 GB, free: 0.582 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001263/0.4009, allocations: 65.09 kB / 0.5143 GB, free: 0.582 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001782/0.4011, allocations: 64.44 kB / 0.5143 GB, free: 0.582 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003619/0.4015, allocations: 313.5 kB / 0.5146 GB, free: 476 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003888/0.4018, allocations: 360.9 kB / 0.515 GB, free: 264 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0012/0.4031, allocations: 0.8442 MB / 0.5158 GB, free: 15.94 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.54e-06/0.4031, allocations: 1.469 kB / 0.5158 GB, free: 15.94 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.744e-06/0.4031, allocations: 0 / 0.5158 GB, free: 15.94 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.32e-05/0.4031, allocations: 0 / 0.5158 GB, free: 15.94 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: 135 * Number of variables: 135 Notification: Performance of Generate backend data structure: time 0.002456/0.4056, allocations: 1.027 MB / 0.5168 GB, free: 15.24 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.941e-05/0.4056, allocations: 9.969 kB / 0.5168 GB, free: 15.24 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001616/0.4058, allocations: 107.6 kB / 0.5169 GB, free: 15.16 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001674/0.406, allocations: 76.72 kB / 0.517 GB, free: 15.12 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001353/0.4073, allocations: 0.5761 MB / 0.5176 GB, free: 14.75 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002412/0.4076, allocations: 118.9 kB / 0.5177 GB, free: 14.67 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001271/0.4077, allocations: 56.39 kB / 0.5177 GB, free: 14.65 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001698/0.4094, allocations: 0.7759 MB / 0.5185 GB, free: 14.3 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.41e-05/0.4095, allocations: 9.125 kB / 0.5185 GB, free: 14.29 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.777e-05/0.4095, allocations: 21 kB / 0.5185 GB, free: 14.27 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001438/0.4097, allocations: 40 kB / 0.5185 GB, free: 14.27 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001826/0.4115, allocations: 0.7161 MB / 0.5192 GB, free: 14.05 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004603/0.4161, allocations: 2.61 MB / 0.5218 GB, free: 12.44 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001952/0.4181, allocations: 0.8027 MB / 0.5226 GB, free: 12.09 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007899/0.4189, allocations: 400 kB / 0.523 GB, free: 11.95 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.976e-05/0.419, allocations: 4.469 kB / 0.523 GB, free: 11.95 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.148e-05/0.419, allocations: 38.36 kB / 0.523 GB, free: 11.9 MB / 398.1 MB Notification: Performance of pre-optimization done (n=50): time 2.334e-06/0.419, allocations: 1.375 kB / 0.523 GB, free: 11.9 MB / 398.1 MB Notification: Performance of matching and sorting (n=51): time 0.004845/0.4239, allocations: 2.157 MB / 0.5251 GB, free: 10.7 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.547e-05/0.424, allocations: 83.47 kB / 0.5252 GB, free: 10.6 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006305/0.4246, allocations: 400.7 kB / 0.5256 GB, free: 10.41 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.172e-05/0.4247, allocations: 36.33 kB / 0.5256 GB, free: 10.38 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002755/0.425, allocations: 296.2 kB / 0.5259 GB, free: 10.13 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002104/0.4252, allocations: 183.4 kB / 0.5261 GB, free: 9.988 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001893/0.4254, allocations: 101 kB / 0.5262 GB, free: 9.934 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000219/0.4256, allocations: 362.7 kB / 0.5265 GB, free: 9.598 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006656/0.4263, allocations: 275.6 kB / 0.5268 GB, free: 9.516 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006949/0.427, allocations: 380.7 kB / 0.5271 GB, free: 9.312 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001239/0.4282, allocations: 0.6508 MB / 0.5278 GB, free: 8.988 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.135e-06/0.4282, allocations: 1.375 kB / 0.5278 GB, free: 8.988 MB / 398.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001729/0.43, allocations: 0.8723 MB / 0.5286 GB, free: 8.582 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.171e-05/0.43, allocations: 10.09 kB / 0.5286 GB, free: 8.578 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.078e-05/0.43, allocations: 3.594 kB / 0.5286 GB, free: 8.578 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003137/0.4303, allocations: 73.34 kB / 0.5287 GB, free: 8.551 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001572/0.4319, allocations: 306.8 kB / 0.529 GB, free: 8.535 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00726/0.4392, allocations: 6.533 MB / 0.5354 GB, free: 2.355 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006859/0.4399, allocations: 39.92 kB / 0.5354 GB, free: 2.336 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.409e-05/0.44, allocations: 18.75 kB / 0.5354 GB, free: 2.332 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005023/0.4405, allocations: 247.6 kB / 0.5357 GB, free: 2.133 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001047/0.4406, allocations: 50.05 kB / 0.5357 GB, free: 2.105 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001753/0.4424, allocations: 0.8274 MB / 0.5365 GB, free: 1.574 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.825e-06/0.4424, allocations: 5.062 kB / 0.5365 GB, free: 1.574 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.4424, allocations: 2.062 kB / 0.5365 GB, free: 1.574 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.045e-05/0.4424, allocations: 3.984 kB / 0.5365 GB, free: 1.57 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003099/0.4455, allocations: 1.68 MB / 0.5382 GB, free: 412 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.45e-06/0.4455, allocations: 2.062 kB / 0.5382 GB, free: 412 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001734/0.4473, allocations: 326 kB / 0.5385 GB, free: 296 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002817/0.4476, allocations: 87.78 kB / 0.5386 GB, free: 244 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.772e-05/0.4476, allocations: 21.89 kB / 0.5386 GB, free: 228 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002773/0.4504, allocations: 3.158 MB / 0.5417 GB, free: 13.09 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.502e-06/0.4504, allocations: 10.34 kB / 0.5417 GB, free: 13.08 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00241/0.4529, allocations: 1.32 MB / 0.543 GB, free: 12.23 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002065/0.4531, allocations: 124.2 kB / 0.5431 GB, free: 12.11 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.986e-05/0.4532, allocations: 17.41 kB / 0.5431 GB, free: 12.1 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000371/0.4535, allocations: 38.58 kB / 0.5431 GB, free: 12.08 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001423/0.4537, allocations: 44.22 kB / 0.5432 GB, free: 12.05 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.735e-05/0.4537, allocations: 20.09 kB / 0.5432 GB, free: 12.05 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003571/0.4541, allocations: 277.3 kB / 0.5435 GB, free: 11.88 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.014e-06/0.4541, allocations: 0 / 0.5435 GB, free: 11.88 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007864/0.4549, allocations: 150.9 kB / 0.5436 GB, free: 11.86 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (ind.i[1],ind.i[2],meterAC.pav,meterDC.pav) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (51): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002626/0.4575, allocations: 1.877 MB / 0.5454 GB, free: 10.46 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002902/0.4605, allocations: 1.082 MB / 0.5465 GB, free: 9.848 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/0.4605, allocations: 0 / 0.5465 GB, free: 9.848 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002155/0.4626, allocations: 0.8084 MB / 0.5473 GB, free: 9.348 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008775/0.4635, allocations: 149.4 kB / 0.5474 GB, free: 9.266 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009514/0.473, allocations: 5.868 MB / 0.5532 GB, free: 3.98 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006371/0.4737, allocations: 0.9486 MB / 0.5541 GB, free: 3.004 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004189/0.4741, allocations: 128.7 kB / 0.5542 GB, free: 2.875 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003236/0.4745, allocations: 195.4 kB / 0.5544 GB, free: 2.684 MB / 414.1 MB Notification: Performance of SimCode: time 1.123e-06/0.4745, allocations: 0 / 0.5544 GB, free: 2.684 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04687/0.5214, allocations: 13.02 MB / 0.5671 GB, free: 5.883 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.27/13.8, allocations: 12.45 kB / 0.5671 GB, free: 5.875 MB / 430.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0002 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Inverters_Rectifier.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches