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.001392/0.001392, allocations: 106.1 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.00174/0.00174, 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.366/1.366, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1735/0.1735, allocations: 38.05 MB / 329.9 MB, free: 8.762 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001331/0.001331, allocations: 63.91 kB / 457.6 MB, free: 7.363 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3604/0.3617, allocations: 58.05 MB / 0.5036 GB, free: 7.738 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Source): time 0.006349/0.3681, allocations: 4.412 MB / 0.5079 GB, free: 4.66 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00252/0.3707, allocations: 1.514 MB / 0.5094 GB, free: 3.609 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003172/0.371, allocations: 11.78 kB / 0.5094 GB, free: 3.605 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001059/0.3721, allocations: 297.6 kB / 0.5097 GB, free: 3.422 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006413/0.3727, allocations: 286.5 kB / 0.51 GB, free: 3.262 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006754/0.3734, allocations: 237.6 kB / 0.5102 GB, free: 3.164 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006955/0.3741, allocations: 0.6197 MB / 0.5108 GB, free: 2.895 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004256/0.3746, allocations: 222.4 kB / 0.511 GB, free: 2.812 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004985/0.3751, allocations: 275.9 kB / 0.5113 GB, free: 2.695 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006305/0.3757, allocations: 364.6 kB / 0.5116 GB, free: 2.574 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.207e-05/0.3758, allocations: 39.19 kB / 0.5117 GB, free: 2.574 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005029/0.3763, allocations: 228.2 kB / 0.5119 GB, free: 2.512 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002697/0.3766, allocations: 225.9 kB / 0.5121 GB, free: 2.438 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000294/0.3769, allocations: 259.5 kB / 0.5123 GB, free: 2.285 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009701/0.3779, allocations: 0.6695 MB / 0.513 GB, free: 2.043 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.511e-06/0.3779, allocations: 1 kB / 0.513 GB, free: 2.043 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.3779, allocations: 0 / 0.513 GB, free: 2.043 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.579e-05/0.3779, allocations: 0 / 0.513 GB, free: 2.043 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.001428/0.3794, allocations: 0.7705 MB / 0.5137 GB, free: 1.461 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.801e-05/0.3794, allocations: 17.64 kB / 0.5138 GB, free: 1.453 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001026/0.3795, allocations: 84.25 kB / 0.5138 GB, free: 1.391 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006502/0.3802, allocations: 93.09 kB / 0.5139 GB, free: 1.359 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006098/0.3808, allocations: 422.9 kB / 0.5143 GB, free: 1.055 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.536e-05/0.3808, allocations: 31.84 kB / 0.5144 GB, free: 1.039 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001462/0.381, allocations: 49.52 kB / 0.5144 GB, free: 1.023 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009978/0.382, allocations: 0.6921 MB / 0.5151 GB, free: 0.7109 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.947e-05/0.382, allocations: 1.625 kB / 0.5151 GB, free: 0.7109 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.817e-05/0.3821, allocations: 19.92 kB / 0.5151 GB, free: 0.6953 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002134/0.3823, allocations: 66.8 kB / 0.5152 GB, free: 0.6914 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0011/0.3834, allocations: 0.6658 MB / 0.5158 GB, free: 496 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003915/0.3873, allocations: 2.651 MB / 0.5184 GB, free: 14.7 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005846/0.3879, allocations: 313 kB / 0.5187 GB, free: 14.56 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002819/0.3882, allocations: 214.5 kB / 0.5189 GB, free: 14.47 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.574e-05/0.3883, allocations: 7.875 kB / 0.5189 GB, free: 14.47 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.908e-05/0.3883, allocations: 35.84 kB / 0.519 GB, free: 14.43 MB / 398.1 MB Notification: Performance of pre-optimization done (n=39): time 2.355e-06/0.3883, allocations: 1.375 kB / 0.519 GB, free: 14.43 MB / 398.1 MB Notification: Performance of matching and sorting (n=40): time 0.002012/0.3903, allocations: 1.289 MB / 0.5202 GB, free: 13.75 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.072e-05/0.3904, allocations: 81.62 kB / 0.5203 GB, free: 13.65 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003351/0.3907, allocations: 301.5 kB / 0.5206 GB, free: 13.48 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.113e-05/0.3908, allocations: 30.77 kB / 0.5206 GB, free: 13.45 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001819/0.391, allocations: 253.9 kB / 0.5209 GB, free: 13.23 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001103/0.3911, allocations: 140.4 kB / 0.521 GB, free: 13.12 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001341/0.3912, allocations: 81.44 kB / 0.5211 GB, free: 13.08 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001321/0.3914, allocations: 347.4 kB / 0.5214 GB, free: 12.75 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003014/0.3917, allocations: 191.8 kB / 0.5216 GB, free: 12.7 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003669/0.3921, allocations: 329.8 kB / 0.5219 GB, free: 12.47 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006461/0.3927, allocations: 0.5614 MB / 0.5224 GB, free: 12.14 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.3927, allocations: 5.312 kB / 0.5224 GB, free: 12.13 MB / 398.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001223/0.3939, allocations: 0.679 MB / 0.5231 GB, free: 11.86 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.32e-05/0.394, allocations: 6.25 kB / 0.5231 GB, free: 11.86 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0008763/0.3949, allocations: 489 kB / 0.5236 GB, free: 11.69 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004664/0.3953, allocations: 121.3 kB / 0.5237 GB, free: 11.65 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003424/0.3957, allocations: 86.5 kB / 0.5238 GB, free: 11.64 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002927/0.3986, allocations: 3.263 MB / 0.527 GB, free: 8.637 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003076/0.399, allocations: 24.91 kB / 0.527 GB, free: 8.629 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.395e-05/0.399, allocations: 19.91 kB / 0.527 GB, free: 8.625 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.0002915/0.3993, allocations: 210.6 kB / 0.5272 GB, free: 8.469 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.357e-05/0.3994, allocations: 32.66 kB / 0.5272 GB, free: 8.453 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007224/0.4001, allocations: 469.8 kB / 0.5277 GB, free: 8.262 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.319e-05/0.4002, allocations: 12.59 kB / 0.5277 GB, free: 8.262 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.4002, allocations: 4.734 kB / 0.5277 GB, free: 8.258 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.362e-06/0.4002, allocations: 2.719 kB / 0.5277 GB, free: 8.258 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001497/0.4017, allocations: 1.012 MB / 0.5287 GB, free: 7.707 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/0.4017, allocations: 5.062 kB / 0.5287 GB, free: 7.703 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003458/0.4021, allocations: 69.89 kB / 0.5288 GB, free: 7.695 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.935e-06/0.4021, allocations: 8.078 kB / 0.5288 GB, free: 7.691 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.71e-05/0.4021, allocations: 7.734 kB / 0.5288 GB, free: 7.688 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.733e-06/0.4021, allocations: 6.594 kB / 0.5288 GB, free: 7.684 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.4021, allocations: 1.062 kB / 0.5288 GB, free: 7.684 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009433/0.4031, allocations: 0.748 MB / 0.5295 GB, free: 7.312 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001438/0.4032, allocations: 140.7 kB / 0.5297 GB, free: 7.191 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.825e-05/0.4033, allocations: 7.484 kB / 0.5297 GB, free: 7.188 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001901/0.4035, allocations: 16.77 kB / 0.5297 GB, free: 7.184 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.748e-05/0.4036, allocations: 18.58 kB / 0.5297 GB, free: 7.18 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.953e-05/0.4036, allocations: 7.422 kB / 0.5297 GB, free: 7.18 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002171/0.4038, allocations: 212.5 kB / 0.5299 GB, free: 7.062 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4038, allocations: 0 / 0.5299 GB, free: 7.062 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005809/0.4044, allocations: 111.3 kB / 0.53 GB, free: 7.051 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.001343/0.4058, allocations: 1.342 MB / 0.5313 GB, free: 6.125 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00113/0.4069, allocations: 0.6963 MB / 0.532 GB, free: 5.758 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.938e-06/0.4069, allocations: 256 / 0.532 GB, free: 5.758 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002958/0.4072, allocations: 217.6 kB / 0.5322 GB, free: 5.684 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005532/0.4078, allocations: 57.78 kB / 0.5323 GB, free: 5.664 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006415/0.4142, allocations: 4.396 MB / 0.5366 GB, free: 2.91 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004865/0.4148, allocations: 0.8799 MB / 0.5374 GB, free: 2.121 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002984/0.4151, allocations: 100.6 kB / 0.5375 GB, free: 2.082 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002139/0.4153, allocations: 148 kB / 0.5377 GB, free: 1.957 MB / 398.1 MB Notification: Performance of SimCode: time 9.92e-07/0.4153, allocations: 0 / 0.5377 GB, free: 1.957 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03368/0.449, allocations: 8.306 MB / 0.5458 GB, free: 12.56 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.694/10.14, allocations: 6.578 kB / 0.5458 GB, free: 12.56 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