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.001453/0.001453, allocations: 113.8 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.001459/0.001459, allocations: 193.4 kB / 18.01 MB, free: 5.07 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.443/1.443, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1891/0.1891, allocations: 38.04 MB / 329.9 MB, free: 8.762 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001852/0.001852, allocations: 75.88 kB / 457.7 MB, free: 7.355 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3844/0.3863, allocations: 58.05 MB / 0.5036 GB, free: 7.492 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Source): time 0.005759/0.3921, allocations: 4.409 MB / 0.5079 GB, free: 4.422 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002624/0.3947, allocations: 1.508 MB / 0.5094 GB, free: 3.371 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002419/0.395, allocations: 16.25 kB / 0.5094 GB, free: 3.363 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008493/0.3959, allocations: 289.3 kB / 0.5097 GB, free: 3.188 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006656/0.3966, allocations: 287 kB / 0.51 GB, free: 3.027 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006883/0.3973, allocations: 245.7 kB / 0.5102 GB, free: 2.922 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007944/0.3981, allocations: 0.6113 MB / 0.5108 GB, free: 2.664 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004179/0.3985, allocations: 223.4 kB / 0.511 GB, free: 2.578 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004107/0.3989, allocations: 269.6 kB / 0.5113 GB, free: 2.461 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005988/0.3995, allocations: 360.8 kB / 0.5116 GB, free: 2.344 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.831e-05/0.3996, allocations: 39.06 kB / 0.5117 GB, free: 2.344 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004763/0.4001, allocations: 226.8 kB / 0.5119 GB, free: 2.281 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002634/0.4004, allocations: 230.1 kB / 0.5121 GB, free: 2.203 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002456/0.4006, allocations: 252.1 kB / 0.5123 GB, free: 2.059 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009105/0.4015, allocations: 0.6815 MB / 0.513 GB, free: 1.805 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.087e-06/0.4016, allocations: 1.094 kB / 0.513 GB, free: 1.805 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.4016, allocations: 0 / 0.513 GB, free: 1.805 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.837e-05/0.4016, allocations: 0 / 0.513 GB, free: 1.805 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.001502/0.4031, allocations: 0.7764 MB / 0.5138 GB, free: 1.215 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.397e-05/0.4031, allocations: 18.45 kB / 0.5138 GB, free: 1.207 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001023/0.4033, allocations: 88.62 kB / 0.5139 GB, free: 1.141 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006914/0.404, allocations: 98.06 kB / 0.5139 GB, free: 1.105 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009602/0.4049, allocations: 423.2 kB / 0.5144 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.549e-05/0.405, allocations: 32.23 kB / 0.5144 GB, free: 0.7852 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001652/0.4051, allocations: 47 kB / 0.5144 GB, free: 0.7695 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001207/0.4064, allocations: 0.6968 MB / 0.5151 GB, free: 464 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.367e-05/0.4064, allocations: 1.125 kB / 0.5151 GB, free: 464 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.047e-05/0.4065, allocations: 12.03 kB / 0.5151 GB, free: 456 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002999/0.4068, allocations: 69.73 kB / 0.5152 GB, free: 448 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001187/0.408, allocations: 0.6681 MB / 0.5158 GB, free: 236 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004617/0.4126, allocations: 2.655 MB / 0.5184 GB, free: 14.44 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006095/0.4132, allocations: 316.3 kB / 0.5187 GB, free: 14.3 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000336/0.4136, allocations: 208.8 kB / 0.5189 GB, free: 14.21 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.54e-05/0.4136, allocations: 7.484 kB / 0.5189 GB, free: 14.21 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.097e-05/0.4137, allocations: 41.25 kB / 0.519 GB, free: 14.16 MB / 398.1 MB Notification: Performance of pre-optimization done (n=39): time 4.628e-06/0.4137, allocations: 1.125 kB / 0.519 GB, free: 14.16 MB / 398.1 MB Notification: Performance of matching and sorting (n=40): time 0.002358/0.416, allocations: 1.314 MB / 0.5203 GB, free: 13.46 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.938e-05/0.4161, allocations: 80.45 kB / 0.5203 GB, free: 13.37 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000325/0.4165, allocations: 288.8 kB / 0.5206 GB, free: 13.21 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.614e-05/0.4165, allocations: 30.86 kB / 0.5206 GB, free: 13.18 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001987/0.4167, allocations: 260.5 kB / 0.5209 GB, free: 12.96 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001398/0.4169, allocations: 145 kB / 0.521 GB, free: 12.84 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001532/0.417, allocations: 86.67 kB / 0.5211 GB, free: 12.8 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002019/0.4172, allocations: 350.3 kB / 0.5214 GB, free: 12.46 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003038/0.4175, allocations: 187.5 kB / 0.5216 GB, free: 12.41 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004742/0.418, allocations: 330.4 kB / 0.5219 GB, free: 12.19 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007481/0.4188, allocations: 0.561 MB / 0.5225 GB, free: 11.85 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.816e-06/0.4188, allocations: 5.375 kB / 0.5225 GB, free: 11.85 MB / 398.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001328/0.4201, allocations: 0.6858 MB / 0.5232 GB, free: 11.57 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.222e-05/0.4202, allocations: 7.625 kB / 0.5232 GB, free: 11.57 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000892/0.4211, allocations: 494 kB / 0.5236 GB, free: 11.39 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004676/0.4215, allocations: 108 kB / 0.5237 GB, free: 11.36 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003276/0.4219, allocations: 90.19 kB / 0.5238 GB, free: 11.35 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003323/0.4252, allocations: 3.264 MB / 0.527 GB, free: 8.348 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003251/0.4256, allocations: 24.39 kB / 0.527 GB, free: 8.34 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.864e-05/0.4256, allocations: 16.88 kB / 0.5271 GB, free: 8.34 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.0003748/0.426, allocations: 208 kB / 0.5273 GB, free: 8.184 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001173/0.4261, allocations: 35.36 kB / 0.5273 GB, free: 8.164 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008066/0.4269, allocations: 475.3 kB / 0.5277 GB, free: 7.969 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.49e-05/0.427, allocations: 11.11 kB / 0.5278 GB, free: 7.969 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.049e-06/0.427, allocations: 5.219 kB / 0.5278 GB, free: 7.965 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.613e-06/0.427, allocations: 1.828 kB / 0.5278 GB, free: 7.965 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001581/0.4286, allocations: 1.009 MB / 0.5287 GB, free: 7.418 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.881e-06/0.4286, allocations: 4.969 kB / 0.5288 GB, free: 7.414 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003501/0.4289, allocations: 70 kB / 0.5288 GB, free: 7.406 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.793e-06/0.429, allocations: 11.73 kB / 0.5288 GB, free: 7.398 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.833e-05/0.429, allocations: 8.078 kB / 0.5288 GB, free: 7.395 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.408e-06/0.429, allocations: 2.891 kB / 0.5288 GB, free: 7.395 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.429, allocations: 1.375 kB / 0.5288 GB, free: 7.395 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001105/0.4301, allocations: 0.7491 MB / 0.5296 GB, free: 7.023 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001861/0.4303, allocations: 145.6 kB / 0.5297 GB, free: 6.895 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.07e-05/0.4304, allocations: 12.89 kB / 0.5297 GB, free: 6.887 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001888/0.4306, allocations: 12.27 kB / 0.5297 GB, free: 6.887 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.08e-05/0.4306, allocations: 25.88 kB / 0.5298 GB, free: 6.879 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.505e-05/0.4307, allocations: 11.34 kB / 0.5298 GB, free: 6.875 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002413/0.4309, allocations: 206.2 kB / 0.53 GB, free: 6.762 MB / 398.1 MB Notification: Performance of sort global known variables: time 3.61e-07/0.4309, allocations: 0 / 0.53 GB, free: 6.762 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006307/0.4316, allocations: 115.3 kB / 0.5301 GB, free: 6.746 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.001533/0.4331, allocations: 1.33 MB / 0.5314 GB, free: 5.832 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00132/0.4345, allocations: 0.7033 MB / 0.5321 GB, free: 5.457 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.998e-06/0.4345, allocations: 2.312 kB / 0.5321 GB, free: 5.457 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003243/0.4348, allocations: 212.8 kB / 0.5323 GB, free: 5.387 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00055/0.4354, allocations: 61.97 kB / 0.5323 GB, free: 5.363 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006386/0.4418, allocations: 4.4 MB / 0.5366 GB, free: 2.57 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000572/0.4424, allocations: 0.883 MB / 0.5375 GB, free: 1.777 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003277/0.4427, allocations: 101.8 kB / 0.5376 GB, free: 1.738 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002155/0.4429, allocations: 148.5 kB / 0.5377 GB, free: 1.613 MB / 398.1 MB Notification: Performance of SimCode: time 9.22e-07/0.4429, allocations: 0 / 0.5377 GB, free: 1.613 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03861/0.4815, allocations: 8.177 MB / 0.5457 GB, free: 12.48 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.44/10.92, allocations: 6.953 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