Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.PowerTransfer.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.Transmission.PowerTransfer,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Transmission_PowerTransfer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Transmission.PowerTransfer,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Transmission_PowerTransfer",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.001592/0.001592, allocations: 112.3 kB / 17.06 MB, free: 5.992 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.001628/0.001628, allocations: 197.3 kB / 18.01 MB, free: 5.066 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.1807/0.1807, allocations: 38.04 MB / 329.9 MB, free: 8.742 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001848/0.001848, allocations: 59.89 kB / 457.7 MB, free: 7.34 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3431/0.3449, allocations: 58.07 MB / 0.5036 GB, free: 7.41 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Transmission.PowerTransfer): time 0.005187/0.3501, allocations: 4.691 MB / 0.5082 GB, free: 4.152 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00185/0.352, allocations: 1.344 MB / 0.5095 GB, free: 3.211 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001825/0.3522, allocations: 16.59 kB / 0.5095 GB, free: 3.203 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009952/0.3532, allocations: 396.7 kB / 0.5099 GB, free: 2.973 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004379/0.3537, allocations: 256.2 kB / 0.5102 GB, free: 2.816 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004049/0.3541, allocations: 179.6 kB / 0.5103 GB, free: 2.73 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005062/0.3546, allocations: 0.5539 MB / 0.5109 GB, free: 2.484 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004207/0.355, allocations: 344.9 kB / 0.5112 GB, free: 2.348 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002867/0.3553, allocations: 247.5 kB / 0.5114 GB, free: 2.238 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004643/0.3558, allocations: 272.3 kB / 0.5117 GB, free: 2.129 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.459e-05/0.3559, allocations: 31.94 kB / 0.5117 GB, free: 2.129 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003576/0.3563, allocations: 132.6 kB / 0.5119 GB, free: 2.09 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001922/0.3565, allocations: 181.7 kB / 0.512 GB, free: 2.027 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000203/0.3567, allocations: 231.1 kB / 0.5123 GB, free: 1.891 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006255/0.3573, allocations: 0.5259 MB / 0.5128 GB, free: 1.688 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.948e-06/0.3573, allocations: 1.938 kB / 0.5128 GB, free: 1.688 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.3573, allocations: 7.938 kB / 0.5128 GB, free: 1.68 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.484e-06/0.3573, allocations: 0 / 0.5128 GB, free: 1.68 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: 93 * Number of variables: 93 Notification: Performance of Generate backend data structure: time 0.0009822/0.3583, allocations: 0.7244 MB / 0.5135 GB, free: 1.098 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.763e-05/0.3584, allocations: 17.61 kB / 0.5135 GB, free: 1.09 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.311e-05/0.3585, allocations: 73.72 kB / 0.5136 GB, free: 1.031 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006663/0.3591, allocations: 91.22 kB / 0.5137 GB, free: 1 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005929/0.3597, allocations: 430.3 kB / 0.5141 GB, free: 0.6914 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.974e-05/0.3598, allocations: 27.84 kB / 0.5141 GB, free: 0.6797 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001286/0.3599, allocations: 46.55 kB / 0.5141 GB, free: 0.6641 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006658/0.3606, allocations: 474 kB / 0.5146 GB, free: 456 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.888e-05/0.3606, allocations: 4.969 kB / 0.5146 GB, free: 452 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.587e-05/0.3606, allocations: 24.02 kB / 0.5146 GB, free: 432 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001013/0.3608, allocations: 28.33 kB / 0.5146 GB, free: 428 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005416/0.3613, allocations: 343.4 kB / 0.515 GB, free: 312 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002254/0.3636, allocations: 1.624 MB / 0.5166 GB, free: 15.19 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004095/0.364, allocations: 176.7 kB / 0.5167 GB, free: 15.09 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001836/0.3642, allocations: 116.1 kB / 0.5168 GB, free: 15.04 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.844e-05/0.3642, allocations: 1.344 kB / 0.5168 GB, free: 15.04 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.998e-05/0.3642, allocations: 36.59 kB / 0.5169 GB, free: 14.99 MB / 398.1 MB Notification: Performance of pre-optimization done (n=19): time 1.472e-06/0.3643, allocations: 1.25 kB / 0.5169 GB, free: 14.99 MB / 398.1 MB Notification: Performance of matching and sorting (n=20): time 0.001497/0.3658, allocations: 0.789 MB / 0.5176 GB, free: 14.46 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.068e-05/0.3658, allocations: 81.3 kB / 0.5177 GB, free: 14.37 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003293/0.3662, allocations: 311.1 kB / 0.518 GB, free: 14.2 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.171e-05/0.3662, allocations: 34.78 kB / 0.5181 GB, free: 14.16 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001882/0.3664, allocations: 250.5 kB / 0.5183 GB, free: 13.96 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.404e-05/0.3665, allocations: 80.41 kB / 0.5184 GB, free: 13.89 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001089/0.3666, allocations: 67.3 kB / 0.5184 GB, free: 13.85 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001588/0.3668, allocations: 341.5 kB / 0.5188 GB, free: 13.53 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001656/0.367, allocations: 98.55 kB / 0.5189 GB, free: 13.49 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002564/0.3672, allocations: 205.8 kB / 0.519 GB, free: 13.32 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004511/0.3677, allocations: 325.9 kB / 0.5194 GB, free: 13.11 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.3677, allocations: 6.172 kB / 0.5194 GB, free: 13.1 MB / 398.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0008636/0.3686, allocations: 428 kB / 0.5198 GB, free: 12.92 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.084e-05/0.3686, allocations: 7.219 kB / 0.5198 GB, free: 12.92 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005317/0.3691, allocations: 269.3 kB / 0.52 GB, free: 12.82 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003463/0.3695, allocations: 76.45 kB / 0.5201 GB, free: 12.8 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002518/0.3697, allocations: 66.81 kB / 0.5202 GB, free: 12.79 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001834/0.3716, allocations: 1.701 MB / 0.5218 GB, free: 11.28 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002084/0.3718, allocations: 18.66 kB / 0.5219 GB, free: 11.27 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.411e-05/0.3718, allocations: 11.34 kB / 0.5219 GB, free: 11.27 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (34): * Single equations (assignments): 33 * 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): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002517/0.3721, allocations: 196.6 kB / 0.5221 GB, free: 11.11 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.114e-05/0.3722, allocations: 33.75 kB / 0.5221 GB, free: 11.09 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004652/0.3726, allocations: 266.8 kB / 0.5223 GB, free: 10.96 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.457e-06/0.3727, allocations: 2.156 kB / 0.5223 GB, free: 10.96 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.514e-06/0.3727, allocations: 2.438 kB / 0.5223 GB, free: 10.96 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.3727, allocations: 1.062 kB / 0.5223 GB, free: 10.96 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001309/0.374, allocations: 0.7554 MB / 0.5231 GB, free: 10.49 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.374, allocations: 1.25 kB / 0.5231 GB, free: 10.49 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002876/0.3743, allocations: 55.16 kB / 0.5231 GB, free: 10.48 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.22e-06/0.3743, allocations: 5.906 kB / 0.5231 GB, free: 10.48 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.696e-05/0.3743, allocations: 11.89 kB / 0.5232 GB, free: 10.47 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.218e-06/0.3744, allocations: 2.719 kB / 0.5232 GB, free: 10.47 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.3744, allocations: 5.438 kB / 0.5232 GB, free: 10.46 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006847/0.3751, allocations: 452.4 kB / 0.5236 GB, free: 10.19 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001185/0.3752, allocations: 106.8 kB / 0.5237 GB, free: 10.08 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.313e-05/0.3752, allocations: 12.86 kB / 0.5237 GB, free: 10.07 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001604/0.3754, allocations: 8.438 kB / 0.5237 GB, free: 10.07 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.879e-05/0.3755, allocations: 15.56 kB / 0.5237 GB, free: 10.06 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.163e-05/0.3755, allocations: 10.11 kB / 0.5237 GB, free: 10.06 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002857/0.3758, allocations: 216.7 kB / 0.5239 GB, free: 9.945 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3758, allocations: 3.938 kB / 0.5239 GB, free: 9.941 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004886/0.3763, allocations: 85 kB / 0.524 GB, free: 9.934 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (line.i[1],line.i[2],line.i[3]) * 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 (23): * Single equations (assignments): 22 * 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.0009853/0.3773, allocations: 0.9977 MB / 0.525 GB, free: 9.113 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007864/0.3781, allocations: 372 kB / 0.5254 GB, free: 8.922 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.3781, allocations: 0 / 0.5254 GB, free: 8.922 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001778/0.3783, allocations: 104.1 kB / 0.5255 GB, free: 8.887 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005405/0.3788, allocations: 63.56 kB / 0.5255 GB, free: 8.867 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005208/0.384, allocations: 3.548 MB / 0.529 GB, free: 6.516 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005585/0.3846, allocations: 0.8461 MB / 0.5298 GB, free: 5.801 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002701/0.3849, allocations: 71.36 kB / 0.5299 GB, free: 5.789 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002198/0.3851, allocations: 143.8 kB / 0.53 GB, free: 5.68 MB / 398.1 MB Notification: Performance of SimCode: time 5.51e-07/0.3852, allocations: 0 / 0.53 GB, free: 5.68 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03382/0.419, allocations: 7.213 MB / 0.5371 GB, free: 2.988 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.91/10.33, allocations: 8.047 kB / 0.5371 GB, free: 2.984 MB / 398.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.PowerTransfer.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.PowerTransfer.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.PowerTransfer.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.PowerTransfer.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.PowerTransfer_res.csv --start-time 0 --stop-time 60 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.024 PowerSystems_latest_PowerSystems_Examples_AC3ph_Transmission_PowerTransfer.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.PowerTransfer.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.PowerTransfer_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Transmission.PowerTransfer.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.PowerTransfer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches