Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Load.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.Load,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Load",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Load,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Load",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.001867/0.001867, allocations: 115.6 kB / 17.06 MB, free: 5.996 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.00174/0.00174, allocations: 192 kB / 18 MB, free: 5.074 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.468/1.468, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2026/0.2026, allocations: 38.04 MB / 329.9 MB, free: 8.75 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002158/0.002158, allocations: 67.89 kB / 457.7 MB, free: 7.336 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3735/0.3756, allocations: 58.06 MB / 0.5036 GB, free: 7.496 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Load): time 0.005277/0.381, allocations: 4.49 MB / 0.508 GB, free: 4.363 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002497/0.3835, allocations: 1.518 MB / 0.5095 GB, free: 3.312 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002923/0.3838, allocations: 15.84 kB / 0.5095 GB, free: 3.305 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009123/0.3847, allocations: 285.1 kB / 0.5098 GB, free: 3.133 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006355/0.3854, allocations: 262.2 kB / 0.51 GB, free: 2.988 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000745/0.3861, allocations: 263.1 kB / 0.5103 GB, free: 2.875 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007367/0.3869, allocations: 0.6391 MB / 0.5109 GB, free: 2.605 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004575/0.3874, allocations: 289.1 kB / 0.5112 GB, free: 2.496 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004198/0.3878, allocations: 282.5 kB / 0.5115 GB, free: 2.379 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006461/0.3884, allocations: 388 kB / 0.5118 GB, free: 2.246 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.174e-05/0.3885, allocations: 40.78 kB / 0.5119 GB, free: 2.246 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003553/0.3889, allocations: 164.9 kB / 0.512 GB, free: 2.195 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002711/0.3892, allocations: 237.3 kB / 0.5122 GB, free: 2.117 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002847/0.3895, allocations: 275.4 kB / 0.5125 GB, free: 1.957 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009375/0.3904, allocations: 0.6596 MB / 0.5132 GB, free: 1.711 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.3904, allocations: 0 / 0.5132 GB, free: 1.711 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.3904, allocations: 2 kB / 0.5132 GB, free: 1.711 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.959e-06/0.3905, allocations: 0 / 0.5132 GB, free: 1.711 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: 113 * Number of variables: 113 Notification: Performance of Generate backend data structure: time 0.001902/0.3924, allocations: 0.89 MB / 0.514 GB, free: 1.09 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.491e-05/0.3924, allocations: 14.27 kB / 0.514 GB, free: 1.086 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001186/0.3926, allocations: 90.47 kB / 0.5141 GB, free: 1.016 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005658/0.3931, allocations: 92.44 kB / 0.5142 GB, free: 0.9844 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008965/0.394, allocations: 0.4958 MB / 0.5147 GB, free: 0.668 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.369e-05/0.3941, allocations: 37.98 kB / 0.5147 GB, free: 0.6445 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000128/0.3942, allocations: 49.73 kB / 0.5148 GB, free: 0.6289 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009601/0.3952, allocations: 0.6834 MB / 0.5154 GB, free: 268 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.206e-05/0.3952, allocations: 10.44 kB / 0.5155 GB, free: 260 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.851e-05/0.3953, allocations: 21.69 kB / 0.5155 GB, free: 244 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001132/0.3954, allocations: 40.62 kB / 0.5155 GB, free: 236 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001024/0.3964, allocations: 0.5246 MB / 0.516 GB, free: 68 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004548/0.401, allocations: 3.1 MB / 0.5191 GB, free: 13.73 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006694/0.4017, allocations: 323.5 kB / 0.5194 GB, free: 13.59 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000272/0.402, allocations: 184 kB / 0.5195 GB, free: 13.51 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.797e-05/0.402, allocations: 4.406 kB / 0.5195 GB, free: 13.51 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.335e-05/0.4021, allocations: 45.03 kB / 0.5196 GB, free: 13.46 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 2.926e-06/0.4021, allocations: 0 / 0.5196 GB, free: 13.46 MB / 398.1 MB Notification: Performance of matching and sorting (n=32): time 0.002439/0.4045, allocations: 1.221 MB / 0.5208 GB, free: 12.78 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.27e-05/0.4046, allocations: 88.28 kB / 0.5209 GB, free: 12.68 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000495/0.4051, allocations: 391.2 kB / 0.5212 GB, free: 12.49 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.596e-05/0.4051, allocations: 36.08 kB / 0.5213 GB, free: 12.45 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002848/0.4054, allocations: 307.4 kB / 0.5216 GB, free: 12.2 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001234/0.4056, allocations: 121.2 kB / 0.5217 GB, free: 12.11 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001681/0.4057, allocations: 103.4 kB / 0.5218 GB, free: 12.05 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001917/0.4059, allocations: 355.2 kB / 0.5221 GB, free: 11.72 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000308/0.4062, allocations: 191.8 kB / 0.5223 GB, free: 11.66 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004862/0.4067, allocations: 389.5 kB / 0.5227 GB, free: 11.36 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008345/0.4076, allocations: 0.5897 MB / 0.5232 GB, free: 10.96 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.536e-06/0.4076, allocations: 2.719 kB / 0.5233 GB, free: 10.96 MB / 398.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.002101/0.4097, allocations: 0.8332 MB / 0.5241 GB, free: 10.66 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.183e-05/0.4097, allocations: 8.812 kB / 0.5241 GB, free: 10.66 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.146e-05/0.4098, allocations: 5.5 kB / 0.5241 GB, free: 10.66 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00126/0.411, allocations: 268.9 kB / 0.5243 GB, free: 10.61 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008175/0.4118, allocations: 138.4 kB / 0.5245 GB, free: 10.59 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007614/0.4195, allocations: 4.036 MB / 0.5284 GB, free: 7.352 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007887/0.4203, allocations: 30.42 kB / 0.5284 GB, free: 7.34 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.354e-05/0.4204, allocations: 26.36 kB / 0.5285 GB, free: 7.336 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * 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 (53): * Single equations (assignments): 51 * Array equations: 0 * 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 {(2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0006109/0.421, allocations: 222.8 kB / 0.5287 GB, free: 7.172 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001458/0.4212, allocations: 46.61 kB / 0.5287 GB, free: 7.145 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001305/0.4225, allocations: 489.1 kB / 0.5292 GB, free: 6.945 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.273e-05/0.4225, allocations: 7.688 kB / 0.5292 GB, free: 6.941 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.4225, allocations: 1.125 kB / 0.5292 GB, free: 6.941 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.139e-05/0.4226, allocations: 2.062 kB / 0.5292 GB, free: 6.941 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002329/0.4249, allocations: 1.025 MB / 0.5302 GB, free: 6.375 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.466e-06/0.4249, allocations: 4.547 kB / 0.5302 GB, free: 6.371 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005836/0.4255, allocations: 84.12 kB / 0.5303 GB, free: 6.367 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.688e-06/0.4255, allocations: 2.766 kB / 0.5303 GB, free: 6.367 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.041e-05/0.4256, allocations: 14.05 kB / 0.5303 GB, free: 6.359 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.215e-06/0.4256, allocations: 7.281 kB / 0.5303 GB, free: 6.355 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.477e-06/0.4256, allocations: 1.031 kB / 0.5303 GB, free: 6.355 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001696/0.4273, allocations: 0.7418 MB / 0.531 GB, free: 5.98 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002184/0.4276, allocations: 124.6 kB / 0.5311 GB, free: 5.855 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.062e-05/0.4276, allocations: 9.453 kB / 0.5312 GB, free: 5.852 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003412/0.428, allocations: 15.8 kB / 0.5312 GB, free: 5.848 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.852e-05/0.4281, allocations: 23.22 kB / 0.5312 GB, free: 5.844 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.212e-05/0.4282, allocations: 17.69 kB / 0.5312 GB, free: 5.836 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005861/0.4287, allocations: 270.7 kB / 0.5315 GB, free: 5.707 MB / 398.1 MB Notification: Performance of sort global known variables: time 3.5e-07/0.4288, allocations: 0 / 0.5315 GB, free: 5.707 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001152/0.4299, allocations: 117.9 kB / 0.5316 GB, free: 5.695 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 5 (load.psi[1],load.psi[2],load.psi[3],load.Z[1],load.Z[2]) * 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 (38): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.002515/0.4324, allocations: 1.305 MB / 0.5329 GB, free: 4.77 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002471/0.4349, allocations: 0.7994 MB / 0.5336 GB, free: 4.289 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.819e-06/0.435, allocations: 0 / 0.5336 GB, free: 4.289 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004849/0.4354, allocations: 195.2 kB / 0.5338 GB, free: 4.207 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009703/0.4364, allocations: 94.75 kB / 0.5339 GB, free: 4.148 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01649/0.4529, allocations: 5.332 MB / 0.5391 GB, free: 456 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001039/0.454, allocations: 0.8969 MB / 0.54 GB, free: 15.65 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0006555/0.4547, allocations: 137.6 kB / 0.5401 GB, free: 15.59 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004586/0.4552, allocations: 169.1 kB / 0.5403 GB, free: 15.45 MB / 414.1 MB Notification: Performance of SimCode: time 1.533e-06/0.4552, allocations: 0 / 0.5403 GB, free: 15.45 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05154/0.5068, allocations: 10.64 MB / 0.5507 GB, free: 7.254 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.9/13.41, allocations: 6.234 kB / 0.5507 GB, free: 7.25 MB / 414.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Load.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Load.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Load.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Load.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Load_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Load.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Load.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Load_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Elementary.Load.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Load.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches