Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.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.AC3ph.Elementary.Rectifier,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Rectifier,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_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.001644/0.001644, allocations: 113.8 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.001879/0.001879, allocations: 197.3 kB / 18.01 MB, free: 5.047 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.477/1.477, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1807/0.1807, allocations: 38.05 MB / 329.9 MB, free: 8.727 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001959/0.001959, allocations: 75.83 kB / 457.7 MB, free: 7.32 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3765/0.3785, allocations: 58.05 MB / 0.5036 GB, free: 7.43 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Rectifier): time 0.008253/0.3868, allocations: 6.766 MB / 0.5102 GB, free: 2.719 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00439/0.3912, allocations: 2.149 MB / 0.5123 GB, free: 1.211 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007388/0.392, allocations: 23.88 kB / 0.5124 GB, free: 1.203 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001574/0.3935, allocations: 0.5138 MB / 0.5129 GB, free: 0.8906 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001572/0.3951, allocations: 0.5531 MB / 0.5134 GB, free: 0.5977 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001159/0.3963, allocations: 373 kB / 0.5138 GB, free: 436 kB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00191/0.3982, allocations: 1.301 MB / 0.515 GB, free: 15.86 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001144/0.3994, allocations: 0.7283 MB / 0.5157 GB, free: 15.54 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001082/0.4005, allocations: 0.5487 MB / 0.5163 GB, free: 15.29 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001313/0.4018, allocations: 0.6793 MB / 0.5169 GB, free: 15.05 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002386/0.4021, allocations: 99.72 kB / 0.517 GB, free: 15.05 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001387/0.4035, allocations: 0.5203 MB / 0.5175 GB, free: 14.93 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006473/0.4041, allocations: 464.2 kB / 0.518 GB, free: 14.76 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008349/0.405, allocations: 0.5215 MB / 0.5185 GB, free: 14.45 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002304/0.4073, allocations: 1.468 MB / 0.5199 GB, free: 13.93 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.838e-06/0.4073, allocations: 0 / 0.5199 GB, free: 13.93 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.4073, allocations: 1.219 kB / 0.5199 GB, free: 13.93 MB / 398.1 MB Notification: Performance of Transformations before backend: time 3.133e-05/0.4073, allocations: 0 / 0.5199 GB, free: 13.93 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: 223 * Number of variables: 223 Notification: Performance of Generate backend data structure: time 0.003538/0.4109, allocations: 1.373 MB / 0.5213 GB, free: 13.09 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.775e-05/0.4109, allocations: 14.62 kB / 0.5213 GB, free: 13.08 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002168/0.4112, allocations: 139.9 kB / 0.5214 GB, free: 12.99 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008228/0.412, allocations: 148.3 kB / 0.5216 GB, free: 12.94 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001437/0.4134, allocations: 0.6975 MB / 0.5222 GB, free: 12.51 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002643/0.4137, allocations: 181.2 kB / 0.5224 GB, free: 12.38 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002365/0.414, allocations: 97.59 kB / 0.5225 GB, free: 12.34 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002647/0.4166, allocations: 1.362 MB / 0.5238 GB, free: 11.73 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.23e-05/0.4167, allocations: 2.75 kB / 0.5238 GB, free: 11.73 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001036/0.4168, allocations: 36.98 kB / 0.5239 GB, free: 11.71 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001661/0.417, allocations: 59.7 kB / 0.5239 GB, free: 11.7 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002741/0.4197, allocations: 1.298 MB / 0.5252 GB, free: 11.29 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008246/0.428, allocations: 4.912 MB / 0.53 GB, free: 7.973 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002423/0.4304, allocations: 1.14 MB / 0.5311 GB, free: 7.324 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001236/0.4317, allocations: 0.6156 MB / 0.5317 GB, free: 7.012 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.311e-05/0.4318, allocations: 15.38 kB / 0.5317 GB, free: 7.004 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.546e-05/0.4318, allocations: 42.72 kB / 0.5318 GB, free: 6.957 MB / 398.1 MB Notification: Performance of pre-optimization done (n=72): time 2.495e-06/0.4318, allocations: 0 / 0.5318 GB, free: 6.957 MB / 398.1 MB Notification: Performance of matching and sorting (n=73): time 0.007089/0.4389, allocations: 3.189 MB / 0.5349 GB, free: 5.062 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.808e-05/0.4391, allocations: 88.12 kB / 0.535 GB, free: 4.961 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006924/0.4398, allocations: 466.5 kB / 0.5354 GB, free: 4.676 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 7.811e-05/0.4398, allocations: 40.02 kB / 0.5354 GB, free: 4.633 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003729/0.4402, allocations: 409.6 kB / 0.5358 GB, free: 4.27 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002861/0.4405, allocations: 266.1 kB / 0.5361 GB, free: 4.039 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003063/0.4408, allocations: 157.2 kB / 0.5362 GB, free: 3.945 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002079/0.441, allocations: 379.9 kB / 0.5366 GB, free: 3.582 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001025/0.4421, allocations: 0.4935 MB / 0.5371 GB, free: 3.34 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001262/0.4433, allocations: 0.6818 MB / 0.5378 GB, free: 2.859 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002213/0.4456, allocations: 1.227 MB / 0.5389 GB, free: 2.102 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.471e-06/0.4456, allocations: 2.188 kB / 0.539 GB, free: 2.102 MB / 398.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.004844/0.4504, allocations: 1.976 MB / 0.5409 GB, free: 1.039 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.786e-05/0.4505, allocations: 12.31 kB / 0.5409 GB, free: 1.035 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.004182/0.4547, allocations: 1.708 MB / 0.5426 GB, free: 48 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001942/0.4566, allocations: 0.6534 MB / 0.5432 GB, free: 15.39 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006483/0.4573, allocations: 159.7 kB / 0.5434 GB, free: 15.23 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01243/0.4697, allocations: 7.415 MB / 0.5506 GB, free: 7.547 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000947/0.4707, allocations: 71.91 kB / 0.5507 GB, free: 7.477 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.903e-05/0.4708, allocations: 32 kB / 0.5507 GB, free: 7.445 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * 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 (76): * Single equations (assignments): 73 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * 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): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,16)} Notification: Performance of prepare postOptimizeDAE: time 0.0005826/0.4714, allocations: 305.5 kB / 0.551 GB, free: 7.137 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001743/0.4716, allocations: 63.61 kB / 0.551 GB, free: 7.074 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002554/0.4742, allocations: 1.305 MB / 0.5523 GB, free: 5.742 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.416e-05/0.4742, allocations: 12 kB / 0.5523 GB, free: 5.73 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.274e-06/0.4742, allocations: 4 kB / 0.5523 GB, free: 5.727 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.008e-05/0.4742, allocations: 3.984 kB / 0.5523 GB, free: 5.723 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004226/0.4785, allocations: 2.409 MB / 0.5547 GB, free: 3.223 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.723e-06/0.4785, allocations: 4 kB / 0.5547 GB, free: 3.219 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002733/0.4812, allocations: 491.4 kB / 0.5552 GB, free: 2.738 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001598/0.4814, allocations: 48.84 kB / 0.5552 GB, free: 2.688 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.24e-05/0.4815, allocations: 16 kB / 0.5552 GB, free: 2.672 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001389/0.4829, allocations: 1.626 MB / 0.5568 GB, free: 0.9062 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.4829, allocations: 0 / 0.5568 GB, free: 0.9062 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003741/0.4866, allocations: 2.013 MB / 0.5588 GB, free: 14.84 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002972/0.487, allocations: 140.6 kB / 0.5589 GB, free: 14.69 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001091/0.4871, allocations: 16 kB / 0.5589 GB, free: 14.67 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005531/0.4876, allocations: 67.91 kB / 0.559 GB, free: 14.61 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001957/0.4878, allocations: 64.47 kB / 0.5591 GB, free: 14.54 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.971e-05/0.4879, allocations: 23.94 kB / 0.5591 GB, free: 14.52 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0004198/0.4883, allocations: 318.9 kB / 0.5594 GB, free: 14.21 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4883, allocations: 0 / 0.5594 GB, free: 14.21 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001103/0.4895, allocations: 228 kB / 0.5596 GB, free: 13.99 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 7 (ind.i[1],ind.i[2],ind.i[3],meterAC.pav[1],meterAC.pav[2],meterAC.pav[3],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 (67): * Single equations (assignments): 64 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.004013/0.4935, allocations: 2.588 MB / 0.5621 GB, free: 11.34 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003225/0.4967, allocations: 1.57 MB / 0.5637 GB, free: 9.742 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.987e-06/0.4967, allocations: 0 / 0.5637 GB, free: 9.742 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002906/0.4997, allocations: 1.002 MB / 0.5646 GB, free: 8.727 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001181/0.5009, allocations: 161.3 kB / 0.5648 GB, free: 8.574 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01883/0.5197, allocations: 9.456 MB / 0.574 GB, free: 14.8 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001032/0.5208, allocations: 1.067 MB / 0.5751 GB, free: 13.7 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0007218/0.5215, allocations: 209.5 kB / 0.5753 GB, free: 13.49 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005363/0.5221, allocations: 295.3 kB / 0.5755 GB, free: 13.21 MB / 446.1 MB Notification: Performance of SimCode: time 4.51e-07/0.5221, allocations: 0 / 0.5755 GB, free: 13.21 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05836/0.5805, allocations: 20.28 MB / 0.5954 GB, free: 9.164 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.22/13.8, allocations: 13.77 kB / 0.5954 GB, free: 9.156 MB / 462.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Rectifier.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Rectifier.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Rectifier.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Rectifier.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Rectifier_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0002 PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Rectifier.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Rectifier.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Rectifier_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Elementary.Rectifier.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Rectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches