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.001084/0.001084, allocations: 110.9 kB / 17.06 MB, free: 6.012 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.001294/0.001295, allocations: 191 kB / 18 MB, free: 5.098 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.384/1.384, 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.1843/0.1843, allocations: 38.04 MB / 329.9 MB, free: 8.77 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001289/0.001289, allocations: 68.03 kB / 457.7 MB, free: 7.367 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3572/0.3585, allocations: 58.06 MB / 0.5036 GB, free: 7.508 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Load): time 0.005585/0.3641, allocations: 4.497 MB / 0.508 GB, free: 4.367 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002844/0.367, allocations: 1.512 MB / 0.5095 GB, free: 3.32 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002883/0.3673, allocations: 16.97 kB / 0.5095 GB, free: 3.312 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008458/0.3681, allocations: 289.1 kB / 0.5098 GB, free: 3.137 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006491/0.3688, allocations: 267.3 kB / 0.51 GB, free: 2.988 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008397/0.3697, allocations: 262.2 kB / 0.5103 GB, free: 2.875 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009423/0.3706, allocations: 0.6366 MB / 0.5109 GB, free: 2.609 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004871/0.3711, allocations: 290.7 kB / 0.5112 GB, free: 2.496 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004244/0.3715, allocations: 301 kB / 0.5115 GB, free: 2.367 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005898/0.3721, allocations: 386.8 kB / 0.5118 GB, free: 2.234 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.421e-05/0.3722, allocations: 41.78 kB / 0.5119 GB, free: 2.234 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003328/0.3726, allocations: 142.2 kB / 0.512 GB, free: 2.207 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002791/0.3729, allocations: 248.7 kB / 0.5123 GB, free: 2.117 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002722/0.3731, allocations: 275 kB / 0.5125 GB, free: 1.957 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009035/0.374, allocations: 0.6613 MB / 0.5132 GB, free: 1.711 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.3741, allocations: 0 / 0.5132 GB, free: 1.711 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3741, allocations: 1.156 kB / 0.5132 GB, free: 1.711 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.427e-06/0.3741, 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.00191/0.376, allocations: 0.8899 MB / 0.514 GB, free: 1.09 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.016e-05/0.3761, allocations: 15.2 kB / 0.514 GB, free: 1.086 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001131/0.3762, allocations: 86.12 kB / 0.5141 GB, free: 1.02 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006129/0.3768, allocations: 101.5 kB / 0.5142 GB, free: 0.9805 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001082/0.3779, allocations: 0.4943 MB / 0.5147 GB, free: 0.6641 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.162e-05/0.3779, allocations: 30.66 kB / 0.5147 GB, free: 0.6484 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000149/0.3781, allocations: 56.72 kB / 0.5148 GB, free: 0.625 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001107/0.3792, allocations: 0.6829 MB / 0.5155 GB, free: 268 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.38e-05/0.3792, allocations: 5.406 kB / 0.5155 GB, free: 264 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.888e-05/0.3793, allocations: 21.84 kB / 0.5155 GB, free: 248 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001145/0.3794, allocations: 37.3 kB / 0.5155 GB, free: 244 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009265/0.3804, allocations: 0.5289 MB / 0.516 GB, free: 72 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00405/0.3844, allocations: 3.092 MB / 0.5191 GB, free: 13.74 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005867/0.385, allocations: 326.7 kB / 0.5194 GB, free: 13.59 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002982/0.3853, allocations: 185.1 kB / 0.5195 GB, free: 13.51 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.696e-05/0.3854, allocations: 9.594 kB / 0.5196 GB, free: 13.51 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.257e-05/0.3854, allocations: 44.42 kB / 0.5196 GB, free: 13.46 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 2.324e-06/0.3854, allocations: 1.25 kB / 0.5196 GB, free: 13.46 MB / 398.1 MB Notification: Performance of matching and sorting (n=32): time 0.00212/0.3875, allocations: 1.212 MB / 0.5208 GB, free: 12.79 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.572e-05/0.3876, allocations: 90.06 kB / 0.5209 GB, free: 12.69 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004568/0.3881, allocations: 396 kB / 0.5212 GB, free: 12.5 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.512e-05/0.3881, allocations: 35.17 kB / 0.5213 GB, free: 12.46 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000203/0.3883, allocations: 307.8 kB / 0.5216 GB, free: 12.21 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001065/0.3884, allocations: 125.1 kB / 0.5217 GB, free: 12.11 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001557/0.3886, allocations: 99.58 kB / 0.5218 GB, free: 12.05 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001342/0.3887, allocations: 358.7 kB / 0.5221 GB, free: 11.72 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003057/0.3891, allocations: 195.8 kB / 0.5223 GB, free: 11.66 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004243/0.3895, allocations: 389.5 kB / 0.5227 GB, free: 11.36 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007579/0.3903, allocations: 0.5902 MB / 0.5233 GB, free: 10.96 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.878e-06/0.3903, allocations: 1.375 kB / 0.5233 GB, free: 10.96 MB / 398.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001893/0.3922, allocations: 0.8312 MB / 0.5241 GB, free: 10.66 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.841e-05/0.3922, allocations: 7.219 kB / 0.5241 GB, free: 10.66 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.088e-05/0.3922, allocations: 7.031 kB / 0.5241 GB, free: 10.66 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001224/0.3934, allocations: 268 kB / 0.5243 GB, free: 10.61 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006227/0.3941, allocations: 138.8 kB / 0.5245 GB, free: 10.59 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004767/0.3989, allocations: 4.044 MB / 0.5284 GB, free: 7.344 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004639/0.3993, allocations: 31.36 kB / 0.5285 GB, free: 7.332 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.903e-05/0.3994, allocations: 25.88 kB / 0.5285 GB, free: 7.328 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.0003455/0.3998, allocations: 222 kB / 0.5287 GB, free: 7.164 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001064/0.3999, allocations: 39.22 kB / 0.5287 GB, free: 7.145 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008181/0.4007, allocations: 491.3 kB / 0.5292 GB, free: 6.941 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.404e-06/0.4007, allocations: 8.031 kB / 0.5292 GB, free: 6.938 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.845e-06/0.4007, allocations: 1.812 kB / 0.5292 GB, free: 6.938 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.363e-06/0.4008, allocations: 2.484 kB / 0.5292 GB, free: 6.938 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001616/0.4024, allocations: 1.008 MB / 0.5302 GB, free: 6.387 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.7e-06/0.4024, allocations: 5.062 kB / 0.5302 GB, free: 6.383 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004609/0.4029, allocations: 88.64 kB / 0.5303 GB, free: 6.375 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.34e-06/0.4029, allocations: 2.094 kB / 0.5303 GB, free: 6.375 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.706e-05/0.4029, allocations: 10.91 kB / 0.5303 GB, free: 6.371 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.813e-06/0.4029, allocations: 3.203 kB / 0.5303 GB, free: 6.371 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.482e-06/0.4029, allocations: 4.031 kB / 0.5303 GB, free: 6.367 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009638/0.4039, allocations: 0.75 MB / 0.531 GB, free: 5.984 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001335/0.4041, allocations: 124.9 kB / 0.5312 GB, free: 5.859 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.033e-05/0.4041, allocations: 9.844 kB / 0.5312 GB, free: 5.855 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002686/0.4044, allocations: 16 kB / 0.5312 GB, free: 5.852 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.024e-05/0.4045, allocations: 22.7 kB / 0.5312 GB, free: 5.848 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.937e-05/0.4045, allocations: 14.22 kB / 0.5312 GB, free: 5.844 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003194/0.4048, allocations: 269.4 kB / 0.5315 GB, free: 5.715 MB / 398.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.4048, allocations: 0 / 0.5315 GB, free: 5.715 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000611/0.4055, allocations: 121.3 kB / 0.5316 GB, free: 5.699 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.001262/0.4067, allocations: 1.302 MB / 0.5329 GB, free: 4.777 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001509/0.4082, allocations: 0.7986 MB / 0.5336 GB, free: 4.293 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.975e-06/0.4083, allocations: 1.094 kB / 0.5336 GB, free: 4.293 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000287/0.4086, allocations: 198.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.0005778/0.4091, allocations: 95.06 kB / 0.5339 GB, free: 4.152 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00937/0.4185, allocations: 5.326 MB / 0.5391 GB, free: 460 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005521/0.4191, allocations: 0.9012 MB / 0.54 GB, free: 15.65 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003787/0.4195, allocations: 136.4 kB / 0.5401 GB, free: 15.59 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002679/0.4198, allocations: 170.1 kB / 0.5403 GB, free: 15.45 MB / 414.1 MB Notification: Performance of SimCode: time 5.61e-07/0.4198, allocations: 0 / 0.5403 GB, free: 15.45 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03664/0.4564, allocations: 10.64 MB / 0.5507 GB, free: 7.277 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.16/12.62, allocations: 7.484 kB / 0.5507 GB, free: 7.273 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