Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.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.Source,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Source",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Source,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Source",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.001242/0.001242, allocations: 110.5 kB / 17.06 MB, free: 5.941 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.001349/0.001349, allocations: 200 kB / 18.01 MB, free: 5.031 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.1818/0.1818, allocations: 38.04 MB / 329.9 MB, free: 8.746 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001354/0.001354, allocations: 63.91 kB / 457.7 MB, free: 7.348 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4161/0.4174, allocations: 58.06 MB / 0.5036 GB, free: 7.375 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Source): time 0.004836/0.4223, allocations: 4.409 MB / 0.5079 GB, free: 4.297 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002024/0.4243, allocations: 1.508 MB / 0.5094 GB, free: 3.25 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002023/0.4246, allocations: 15.78 kB / 0.5094 GB, free: 3.242 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007983/0.4254, allocations: 293.7 kB / 0.5097 GB, free: 3.062 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005755/0.4259, allocations: 291.4 kB / 0.51 GB, free: 2.898 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006564/0.4266, allocations: 246.3 kB / 0.5102 GB, free: 2.793 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007359/0.4274, allocations: 0.6073 MB / 0.5108 GB, free: 2.535 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004227/0.4278, allocations: 228.3 kB / 0.511 GB, free: 2.449 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000464/0.4283, allocations: 270.9 kB / 0.5113 GB, free: 2.336 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006065/0.4289, allocations: 370.1 kB / 0.5116 GB, free: 2.211 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.835e-05/0.429, allocations: 37.97 kB / 0.5117 GB, free: 2.211 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005681/0.4296, allocations: 220.6 kB / 0.5119 GB, free: 2.156 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002878/0.4299, allocations: 233.5 kB / 0.5121 GB, free: 2.074 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002898/0.4302, allocations: 256.3 kB / 0.5123 GB, free: 1.926 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009158/0.4311, allocations: 0.6762 MB / 0.513 GB, free: 1.676 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.4311, allocations: 0 / 0.513 GB, free: 1.676 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.4311, allocations: 1.312 kB / 0.513 GB, free: 1.676 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.157e-05/0.4311, allocations: 0.5625 kB / 0.513 GB, free: 1.676 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: 119 * Number of variables: 119 Notification: Performance of Generate backend data structure: time 0.00139/0.4325, allocations: 0.78 MB / 0.5138 GB, free: 1.082 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.696e-05/0.4326, allocations: 14.66 kB / 0.5138 GB, free: 1.078 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001095/0.4327, allocations: 91.12 kB / 0.5139 GB, free: 1.008 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006383/0.4333, allocations: 90.11 kB / 0.514 GB, free: 0.9805 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007522/0.4341, allocations: 427.5 kB / 0.5144 GB, free: 0.6719 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.659e-05/0.4341, allocations: 32.03 kB / 0.5144 GB, free: 0.6562 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001479/0.4343, allocations: 51.5 kB / 0.5144 GB, free: 0.6367 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001038/0.4353, allocations: 0.6922 MB / 0.5151 GB, free: 332 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.212e-05/0.4354, allocations: 1.938 kB / 0.5151 GB, free: 332 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.58e-05/0.4354, allocations: 14.95 kB / 0.5151 GB, free: 320 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002111/0.4356, allocations: 70.91 kB / 0.5152 GB, free: 312 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0011/0.4367, allocations: 0.6659 MB / 0.5159 GB, free: 100 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004105/0.4409, allocations: 2.656 MB / 0.5184 GB, free: 14.31 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005603/0.4414, allocations: 312.6 kB / 0.5187 GB, free: 14.17 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002994/0.4418, allocations: 208.4 kB / 0.5189 GB, free: 14.09 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.342e-05/0.4418, allocations: 9 kB / 0.5189 GB, free: 14.08 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.468e-05/0.4418, allocations: 37.56 kB / 0.519 GB, free: 14.04 MB / 398.1 MB Notification: Performance of pre-optimization done (n=39): time 4.178e-06/0.4419, allocations: 0 / 0.519 GB, free: 14.04 MB / 398.1 MB Notification: Performance of matching and sorting (n=40): time 0.002053/0.4439, allocations: 1.316 MB / 0.5203 GB, free: 13.34 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.609e-05/0.444, allocations: 80.64 kB / 0.5203 GB, free: 13.24 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002938/0.4443, allocations: 293.5 kB / 0.5206 GB, free: 13.08 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.152e-05/0.4443, allocations: 25.7 kB / 0.5207 GB, free: 13.05 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000158/0.4445, allocations: 258.4 kB / 0.5209 GB, free: 12.83 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001107/0.4446, allocations: 144.5 kB / 0.521 GB, free: 12.72 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001375/0.4448, allocations: 94.56 kB / 0.5211 GB, free: 12.66 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000135/0.4449, allocations: 350.9 kB / 0.5215 GB, free: 12.33 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002728/0.4452, allocations: 187.7 kB / 0.5216 GB, free: 12.28 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004768/0.4457, allocations: 330 kB / 0.522 GB, free: 12.05 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008122/0.4465, allocations: 0.5654 MB / 0.5225 GB, free: 11.71 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.4465, allocations: 1.125 kB / 0.5225 GB, free: 11.71 MB / 398.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001408/0.4479, allocations: 0.683 MB / 0.5232 GB, free: 11.44 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.093e-05/0.4479, allocations: 7.125 kB / 0.5232 GB, free: 11.44 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0009202/0.4489, allocations: 489.1 kB / 0.5236 GB, free: 11.27 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004308/0.4493, allocations: 113.2 kB / 0.5238 GB, free: 11.23 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000328/0.4496, allocations: 86.66 kB / 0.5238 GB, free: 11.22 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002882/0.4525, allocations: 3.263 MB / 0.527 GB, free: 8.223 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002697/0.4528, allocations: 23.75 kB / 0.527 GB, free: 8.215 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.396e-05/0.4529, allocations: 19.86 kB / 0.5271 GB, free: 8.211 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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 (45): * Single equations (assignments): 41 * Array equations: 2 * 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): 2 systems {(1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000279/0.4532, allocations: 211.8 kB / 0.5273 GB, free: 8.055 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.825e-05/0.4533, allocations: 40.73 kB / 0.5273 GB, free: 8.031 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007986/0.4541, allocations: 465.2 kB / 0.5278 GB, free: 7.844 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.397e-05/0.4541, allocations: 12.42 kB / 0.5278 GB, free: 7.844 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.181e-06/0.4541, allocations: 5.094 kB / 0.5278 GB, free: 7.84 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.612e-06/0.4541, allocations: 1.172 kB / 0.5278 GB, free: 7.84 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001644/0.4558, allocations: 1.018 MB / 0.5288 GB, free: 7.285 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/0.4558, allocations: 1.344 kB / 0.5288 GB, free: 7.285 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000346/0.4562, allocations: 65.61 kB / 0.5288 GB, free: 7.281 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.425e-06/0.4562, allocations: 6.531 kB / 0.5288 GB, free: 7.277 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.913e-05/0.4562, allocations: 9.016 kB / 0.5288 GB, free: 7.273 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.538e-06/0.4562, allocations: 2.922 kB / 0.5288 GB, free: 7.273 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.315e-06/0.4562, allocations: 1.375 kB / 0.5288 GB, free: 7.273 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001015/0.4572, allocations: 0.7546 MB / 0.5296 GB, free: 6.895 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000189/0.4574, allocations: 142.6 kB / 0.5297 GB, free: 6.77 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.579e-05/0.4575, allocations: 8.875 kB / 0.5297 GB, free: 6.766 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002024/0.4577, allocations: 17.3 kB / 0.5297 GB, free: 6.762 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.871e-05/0.4578, allocations: 15.12 kB / 0.5298 GB, free: 6.762 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.739e-05/0.4578, allocations: 15.53 kB / 0.5298 GB, free: 6.754 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002248/0.458, allocations: 204.7 kB / 0.53 GB, free: 6.645 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4581, allocations: 4 kB / 0.53 GB, free: 6.641 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005766/0.4586, allocations: 114.5 kB / 0.5301 GB, free: 6.625 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (ind.i[1],ind.i[2],ind.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 (30): * Single equations (assignments): 27 * Array equations: 2 * 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.001379/0.46, allocations: 1.331 MB / 0.5314 GB, free: 5.711 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00113/0.4612, allocations: 0.7051 MB / 0.5321 GB, free: 5.336 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.4612, allocations: 4.125 kB / 0.5321 GB, free: 5.332 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003122/0.4615, allocations: 208.8 kB / 0.5323 GB, free: 5.266 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005126/0.462, allocations: 69.64 kB / 0.5323 GB, free: 5.234 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006314/0.4683, allocations: 4.401 MB / 0.5366 GB, free: 2.531 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005664/0.4689, allocations: 0.8755 MB / 0.5375 GB, free: 1.746 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002984/0.4693, allocations: 108.9 kB / 0.5376 GB, free: 1.699 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001961/0.4695, allocations: 143.8 kB / 0.5377 GB, free: 1.578 MB / 398.1 MB Notification: Performance of SimCode: time 6.31e-07/0.4695, allocations: 1.156 kB / 0.5377 GB, free: 1.578 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03676/0.5062, allocations: 8.182 MB / 0.5457 GB, free: 12.47 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.886/10.39, allocations: 4.062 kB / 0.5457 GB, free: 12.47 MB / 414.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source_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_Source.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Elementary.Source.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches