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.001075/0.001075, allocations: 112 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.001044/0.001044, allocations: 198.8 kB / 18.01 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.411/1.411, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1761/0.1761, allocations: 38.03 MB / 329.9 MB, free: 8.746 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001231/0.001231, allocations: 67.91 kB / 457.7 MB, free: 7.324 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3648/0.366, allocations: 58.05 MB / 0.5036 GB, free: 7.512 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Transmission.PowerTransfer): time 0.005089/0.3712, allocations: 4.707 MB / 0.5082 GB, free: 4.238 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001676/0.3729, allocations: 1.34 MB / 0.5095 GB, free: 3.301 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001538/0.373, allocations: 17.47 kB / 0.5095 GB, free: 3.293 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001004/0.374, allocations: 400.8 kB / 0.5099 GB, free: 3.059 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000436/0.3745, allocations: 239.8 kB / 0.5102 GB, free: 2.918 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004041/0.3749, allocations: 184.6 kB / 0.5103 GB, free: 2.828 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005215/0.3754, allocations: 0.5572 MB / 0.5109 GB, free: 2.578 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004368/0.3759, allocations: 338.5 kB / 0.5112 GB, free: 2.445 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003089/0.3762, allocations: 264.5 kB / 0.5115 GB, free: 2.324 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003721/0.3766, allocations: 281.3 kB / 0.5117 GB, free: 2.207 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.541e-05/0.3766, allocations: 31.59 kB / 0.5118 GB, free: 2.207 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002716/0.3769, allocations: 127.8 kB / 0.5119 GB, free: 2.172 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001931/0.3771, allocations: 182.9 kB / 0.512 GB, free: 2.109 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002067/0.3773, allocations: 221.5 kB / 0.5123 GB, free: 1.98 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006264/0.378, allocations: 0.5352 MB / 0.5128 GB, free: 1.77 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.378, allocations: 0 / 0.5128 GB, free: 1.77 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.775e-06/0.378, allocations: 1.094 kB / 0.5128 GB, free: 1.77 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.516e-06/0.378, allocations: 4 kB / 0.5128 GB, free: 1.766 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.001012/0.379, allocations: 0.7238 MB / 0.5135 GB, free: 1.184 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.977e-05/0.3791, allocations: 13.47 kB / 0.5135 GB, free: 1.18 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.453e-05/0.3791, allocations: 82.06 kB / 0.5136 GB, free: 1.113 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006413/0.3798, allocations: 87.62 kB / 0.5137 GB, free: 1.086 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006255/0.3804, allocations: 426.3 kB / 0.5141 GB, free: 0.7812 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.66e-05/0.3805, allocations: 27.64 kB / 0.5141 GB, free: 0.7695 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001242/0.3806, allocations: 55.38 kB / 0.5142 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006529/0.3812, allocations: 477.1 kB / 0.5146 GB, free: 0.5234 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.754e-05/0.3813, allocations: 1.125 kB / 0.5146 GB, free: 0.5234 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.331e-05/0.3813, allocations: 11.44 kB / 0.5146 GB, free: 0.5156 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000104/0.3814, allocations: 29.81 kB / 0.5146 GB, free: 0.5117 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000544/0.382, allocations: 347.4 kB / 0.515 GB, free: 404 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002162/0.3841, allocations: 1.623 MB / 0.5166 GB, free: 15.28 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003843/0.3845, allocations: 176.3 kB / 0.5167 GB, free: 15.18 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001684/0.3847, allocations: 111.1 kB / 0.5168 GB, free: 15.13 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.984e-05/0.3847, allocations: 3.453 kB / 0.5168 GB, free: 15.13 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.65e-05/0.3848, allocations: 40.33 kB / 0.5169 GB, free: 15.09 MB / 398.1 MB Notification: Performance of pre-optimization done (n=19): time 1.433e-06/0.3848, allocations: 1.25 kB / 0.5169 GB, free: 15.09 MB / 398.1 MB Notification: Performance of matching and sorting (n=20): time 0.001429/0.3862, allocations: 0.7861 MB / 0.5176 GB, free: 14.56 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.898e-05/0.3863, allocations: 79.58 kB / 0.5177 GB, free: 14.47 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003376/0.3866, allocations: 311.4 kB / 0.518 GB, free: 14.3 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.746e-05/0.3867, allocations: 30.89 kB / 0.5181 GB, free: 14.27 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001964/0.3869, allocations: 254.4 kB / 0.5183 GB, free: 14.05 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.617e-05/0.387, allocations: 80.69 kB / 0.5184 GB, free: 13.99 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001119/0.3871, allocations: 59.81 kB / 0.5184 GB, free: 13.96 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001394/0.3872, allocations: 345 kB / 0.5188 GB, free: 13.63 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001726/0.3874, allocations: 103.5 kB / 0.5189 GB, free: 13.59 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002475/0.3877, allocations: 199.9 kB / 0.519 GB, free: 13.43 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004538/0.3881, allocations: 330.3 kB / 0.5194 GB, free: 13.2 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.3881, allocations: 6.125 kB / 0.5194 GB, free: 13.2 MB / 398.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0008576/0.389, allocations: 428.8 kB / 0.5198 GB, free: 13.01 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.803e-05/0.389, allocations: 6.75 kB / 0.5198 GB, free: 13.01 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005232/0.3895, allocations: 269.9 kB / 0.52 GB, free: 12.91 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003333/0.3899, allocations: 81.05 kB / 0.5201 GB, free: 12.89 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002391/0.3901, allocations: 69.59 kB / 0.5202 GB, free: 12.88 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001756/0.3919, allocations: 1.706 MB / 0.5218 GB, free: 11.36 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001846/0.3921, allocations: 14.53 kB / 0.5219 GB, free: 11.36 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.641e-05/0.3921, allocations: 11.38 kB / 0.5219 GB, free: 11.36 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.0002261/0.3924, allocations: 192.2 kB / 0.5221 GB, free: 11.2 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.335e-05/0.3924, allocations: 33.92 kB / 0.5221 GB, free: 11.18 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004864/0.3929, allocations: 262.4 kB / 0.5223 GB, free: 11.06 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.059e-06/0.3929, allocations: 7.406 kB / 0.5223 GB, free: 11.05 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.435e-06/0.393, allocations: 1.078 kB / 0.5223 GB, free: 11.05 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.941e-06/0.393, allocations: 2.078 kB / 0.5224 GB, free: 11.05 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001308/0.3943, allocations: 0.7605 MB / 0.5231 GB, free: 10.57 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.576e-06/0.3943, allocations: 1.406 kB / 0.5231 GB, free: 10.57 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002734/0.3946, allocations: 47.05 kB / 0.5231 GB, free: 10.57 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.009e-06/0.3946, allocations: 1.922 kB / 0.5231 GB, free: 10.57 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.811e-05/0.3946, allocations: 12.02 kB / 0.5232 GB, free: 10.56 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.803e-06/0.3946, allocations: 7.484 kB / 0.5232 GB, free: 10.56 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.3946, allocations: 0 / 0.5232 GB, free: 10.56 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006187/0.3953, allocations: 458.8 kB / 0.5236 GB, free: 10.28 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.691e-05/0.3954, allocations: 111.9 kB / 0.5237 GB, free: 10.16 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.086e-05/0.3954, allocations: 7.5 kB / 0.5237 GB, free: 10.16 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000155/0.3956, allocations: 8.672 kB / 0.5237 GB, free: 10.16 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.587e-05/0.3956, allocations: 20.78 kB / 0.5237 GB, free: 10.15 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.763e-05/0.3956, allocations: 8.781 kB / 0.5237 GB, free: 10.14 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000202/0.3958, allocations: 216.6 kB / 0.524 GB, free: 10.03 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3958, allocations: 0 / 0.524 GB, free: 10.03 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004024/0.3963, allocations: 85.61 kB / 0.524 GB, free: 10.02 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.0008518/0.3971, allocations: 0.9935 MB / 0.525 GB, free: 9.211 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000703/0.3978, allocations: 369.2 kB / 0.5254 GB, free: 9.02 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.34e-06/0.3978, allocations: 0 / 0.5254 GB, free: 9.02 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001706/0.398, allocations: 115.9 kB / 0.5255 GB, free: 8.973 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005045/0.3985, allocations: 68.88 kB / 0.5255 GB, free: 8.949 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00437/0.4029, allocations: 3.541 MB / 0.529 GB, free: 6.605 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000451/0.4034, allocations: 0.847 MB / 0.5298 GB, free: 5.891 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002191/0.4036, allocations: 70.64 kB / 0.5299 GB, free: 5.879 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000182/0.4038, allocations: 139 kB / 0.53 GB, free: 5.773 MB / 398.1 MB Notification: Performance of SimCode: time 4.91e-07/0.4038, allocations: 0 / 0.53 GB, free: 5.773 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03111/0.4349, allocations: 7.212 MB / 0.5371 GB, free: 3.027 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.716/10.15, allocations: 11.45 kB / 0.5371 GB, free: 3.02 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