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.001436/0.001436, allocations: 104 kB / 17.06 MB, free: 6.027 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.001669/0.001669, allocations: 195 kB / 18 MB, free: 5.105 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.419/1.419, 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.1867/0.1867, allocations: 38.04 MB / 329.9 MB, free: 8.742 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001384/0.001384, allocations: 63.91 kB / 457.7 MB, free: 7.344 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3928/0.3942, allocations: 58.05 MB / 0.5036 GB, free: 7.328 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Source): time 0.004861/0.3991, allocations: 4.414 MB / 0.5079 GB, free: 4.25 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002094/0.4012, allocations: 1.517 MB / 0.5094 GB, free: 3.195 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001965/0.4014, allocations: 11.56 kB / 0.5094 GB, free: 3.191 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008232/0.4022, allocations: 286 kB / 0.5097 GB, free: 3.02 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006626/0.4029, allocations: 287.5 kB / 0.51 GB, free: 2.859 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007435/0.4036, allocations: 249.4 kB / 0.5102 GB, free: 2.75 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008564/0.4045, allocations: 0.6063 MB / 0.5108 GB, free: 2.492 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004234/0.405, allocations: 227.5 kB / 0.511 GB, free: 2.406 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004207/0.4054, allocations: 265.9 kB / 0.5113 GB, free: 2.297 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005905/0.406, allocations: 373.9 kB / 0.5116 GB, free: 2.168 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.524e-05/0.4061, allocations: 38.62 kB / 0.5117 GB, free: 2.168 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000476/0.4066, allocations: 227.8 kB / 0.5119 GB, free: 2.105 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002532/0.4068, allocations: 227.1 kB / 0.5121 GB, free: 2.031 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002611/0.4071, allocations: 259.1 kB / 0.5123 GB, free: 1.879 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008542/0.4079, allocations: 0.6617 MB / 0.513 GB, free: 1.645 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.865e-05/0.408, allocations: 0.7969 kB / 0.513 GB, free: 1.645 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.408, allocations: 1.062 kB / 0.513 GB, free: 1.645 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.74e-05/0.408, allocations: 0 / 0.513 GB, free: 1.645 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.001737/0.4097, allocations: 0.7764 MB / 0.5137 GB, free: 1.055 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.63e-05/0.4098, allocations: 14.91 kB / 0.5138 GB, free: 1.051 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001383/0.41, allocations: 91.22 kB / 0.5138 GB, free: 0.9805 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007116/0.4107, allocations: 90.38 kB / 0.5139 GB, free: 0.9531 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007566/0.4115, allocations: 422.9 kB / 0.5143 GB, free: 0.6484 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.769e-05/0.4115, allocations: 23.59 kB / 0.5144 GB, free: 0.6406 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001543/0.4117, allocations: 52.03 kB / 0.5144 GB, free: 0.6211 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001096/0.4128, allocations: 0.6994 MB / 0.5151 GB, free: 308 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.144e-05/0.4128, allocations: 2.062 kB / 0.5151 GB, free: 308 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.885e-05/0.4128, allocations: 12.19 kB / 0.5151 GB, free: 300 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002115/0.4131, allocations: 69.86 kB / 0.5152 GB, free: 292 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001184/0.4143, allocations: 0.6663 MB / 0.5158 GB, free: 80 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00439/0.4187, allocations: 2.651 MB / 0.5184 GB, free: 14.29 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006187/0.4193, allocations: 317.1 kB / 0.5187 GB, free: 14.15 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003362/0.4196, allocations: 215.8 kB / 0.5189 GB, free: 14.06 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.371e-05/0.4197, allocations: 9.516 kB / 0.5189 GB, free: 14.05 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.216e-05/0.4197, allocations: 36.53 kB / 0.519 GB, free: 14.01 MB / 398.1 MB Notification: Performance of pre-optimization done (n=39): time 2.234e-06/0.4197, allocations: 1.031 kB / 0.519 GB, free: 14.01 MB / 398.1 MB Notification: Performance of matching and sorting (n=40): time 0.002768/0.4225, allocations: 1.292 MB / 0.5202 GB, free: 13.33 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.982e-05/0.4226, allocations: 81.8 kB / 0.5203 GB, free: 13.23 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004633/0.4231, allocations: 297.4 kB / 0.5206 GB, free: 13.07 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.478e-05/0.4231, allocations: 26.89 kB / 0.5206 GB, free: 13.04 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002521/0.4234, allocations: 259.3 kB / 0.5209 GB, free: 12.82 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001354/0.4235, allocations: 135.1 kB / 0.521 GB, free: 12.71 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001835/0.4237, allocations: 84.2 kB / 0.5211 GB, free: 12.67 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002197/0.424, allocations: 349.6 kB / 0.5214 GB, free: 12.34 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003878/0.4243, allocations: 190.6 kB / 0.5216 GB, free: 12.28 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005454/0.4249, allocations: 326.1 kB / 0.5219 GB, free: 12.06 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001035/0.4259, allocations: 0.5654 MB / 0.5224 GB, free: 11.72 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.951e-06/0.426, allocations: 1.375 kB / 0.5225 GB, free: 11.72 MB / 398.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001717/0.4277, allocations: 0.6813 MB / 0.5231 GB, free: 11.45 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.954e-05/0.4277, allocations: 6.719 kB / 0.5231 GB, free: 11.45 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001014/0.4287, allocations: 494.4 kB / 0.5236 GB, free: 11.27 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004542/0.4292, allocations: 113.7 kB / 0.5237 GB, free: 11.24 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003282/0.4296, allocations: 83.06 kB / 0.5238 GB, free: 11.23 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003564/0.4331, allocations: 3.262 MB / 0.527 GB, free: 8.23 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003013/0.4335, allocations: 28.34 kB / 0.527 GB, free: 8.219 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.773e-05/0.4335, allocations: 20.45 kB / 0.527 GB, free: 8.215 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.0003519/0.4339, allocations: 208.9 kB / 0.5272 GB, free: 8.059 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001144/0.434, allocations: 32.03 kB / 0.5272 GB, free: 8.043 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008582/0.4349, allocations: 467.1 kB / 0.5277 GB, free: 7.855 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.425e-05/0.4349, allocations: 10.22 kB / 0.5277 GB, free: 7.855 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.4349, allocations: 5.281 kB / 0.5277 GB, free: 7.852 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.095e-06/0.4349, allocations: 1.922 kB / 0.5277 GB, free: 7.852 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001831/0.4368, allocations: 1.022 MB / 0.5287 GB, free: 7.293 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.849e-06/0.4368, allocations: 1.125 kB / 0.5287 GB, free: 7.293 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003685/0.4371, allocations: 66.31 kB / 0.5288 GB, free: 7.289 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.626e-06/0.4372, allocations: 6 kB / 0.5288 GB, free: 7.285 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.593e-05/0.4372, allocations: 12.67 kB / 0.5288 GB, free: 7.277 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.369e-06/0.4372, allocations: 1.953 kB / 0.5288 GB, free: 7.277 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-06/0.4372, allocations: 1.438 kB / 0.5288 GB, free: 7.277 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009918/0.4382, allocations: 0.7519 MB / 0.5295 GB, free: 6.902 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002326/0.4385, allocations: 138 kB / 0.5297 GB, free: 6.781 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.13e-05/0.4385, allocations: 8.703 kB / 0.5297 GB, free: 6.777 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002155/0.4388, allocations: 17.16 kB / 0.5297 GB, free: 6.773 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.429e-05/0.4388, allocations: 16.42 kB / 0.5297 GB, free: 6.773 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.046e-05/0.4389, allocations: 23.12 kB / 0.5297 GB, free: 6.758 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.00022/0.4391, allocations: 203.5 kB / 0.5299 GB, free: 6.648 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4391, allocations: 0 / 0.5299 GB, free: 6.648 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005754/0.4397, allocations: 111.5 kB / 0.53 GB, free: 6.637 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.001514/0.4412, allocations: 1.335 MB / 0.5313 GB, free: 5.719 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001391/0.4426, allocations: 0.7119 MB / 0.532 GB, free: 5.336 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.409e-06/0.4426, allocations: 0 / 0.532 GB, free: 5.336 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003776/0.443, allocations: 209.2 kB / 0.5322 GB, free: 5.27 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006535/0.4437, allocations: 57.75 kB / 0.5323 GB, free: 5.25 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007017/0.4507, allocations: 4.391 MB / 0.5366 GB, free: 2.547 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000528/0.4512, allocations: 0.8747 MB / 0.5374 GB, free: 1.762 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003224/0.4516, allocations: 109.2 kB / 0.5375 GB, free: 1.715 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002238/0.4518, allocations: 140.7 kB / 0.5377 GB, free: 1.598 MB / 398.1 MB Notification: Performance of SimCode: time 6.31e-07/0.4518, allocations: 0 / 0.5377 GB, free: 1.598 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03646/0.4883, allocations: 8.311 MB / 0.5458 GB, free: 12.3 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.715/10.2, allocations: 4.062 kB / 0.5458 GB, free: 12.3 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Source_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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.mat","/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