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.001748/0.001748, allocations: 107.4 kB / 17.06 MB, free: 5.82 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.001923/0.001923, allocations: 195.9 kB / 18 MB, free: 4.965 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.39/1.39, 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.1789/0.1789, allocations: 38.04 MB / 329.9 MB, free: 8.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001898/0.001898, allocations: 67.89 kB / 457.7 MB, free: 7.352 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3092/0.3111, allocations: 58.05 MB / 0.5036 GB, free: 7.406 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Source): time 0.005078/0.3162, allocations: 4.414 MB / 0.5079 GB, free: 4.328 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002252/0.3185, allocations: 1.516 MB / 0.5094 GB, free: 3.273 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001841/0.3187, allocations: 13.06 kB / 0.5094 GB, free: 3.27 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000792/0.3195, allocations: 287.5 kB / 0.5097 GB, free: 3.098 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005538/0.3201, allocations: 291.8 kB / 0.51 GB, free: 2.934 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006384/0.3207, allocations: 241.4 kB / 0.5102 GB, free: 2.832 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006391/0.3214, allocations: 0.6113 MB / 0.5108 GB, free: 2.57 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003681/0.3217, allocations: 221 kB / 0.511 GB, free: 2.488 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003682/0.3221, allocations: 267.9 kB / 0.5113 GB, free: 2.371 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005012/0.3226, allocations: 377.7 kB / 0.5116 GB, free: 2.238 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.986e-05/0.3227, allocations: 38.03 kB / 0.5117 GB, free: 2.238 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004399/0.3231, allocations: 224.1 kB / 0.5119 GB, free: 2.18 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002314/0.3234, allocations: 226.7 kB / 0.5121 GB, free: 2.105 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002382/0.3236, allocations: 255.3 kB / 0.5123 GB, free: 1.957 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000835/0.3245, allocations: 0.6725 MB / 0.513 GB, free: 1.711 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.107e-06/0.3245, allocations: 1.125 kB / 0.513 GB, free: 1.711 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.3245, allocations: 4 kB / 0.513 GB, free: 1.707 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.046e-05/0.3245, allocations: 0 / 0.513 GB, free: 1.707 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.001304/0.3258, allocations: 0.7811 MB / 0.5138 GB, free: 1.113 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.924e-05/0.3259, allocations: 13.64 kB / 0.5138 GB, free: 1.109 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.491e-05/0.326, allocations: 88.02 kB / 0.5139 GB, free: 1.043 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006152/0.3266, allocations: 97.81 kB / 0.5139 GB, free: 1.008 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005863/0.3272, allocations: 427.7 kB / 0.5144 GB, free: 0.6992 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.51e-05/0.3272, allocations: 27.78 kB / 0.5144 GB, free: 0.6875 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001418/0.3274, allocations: 51.25 kB / 0.5144 GB, free: 0.668 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009639/0.3283, allocations: 0.6969 MB / 0.5151 GB, free: 360 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.902e-05/0.3284, allocations: 1.25 kB / 0.5151 GB, free: 360 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.567e-05/0.3284, allocations: 16.2 kB / 0.5151 GB, free: 348 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002018/0.3286, allocations: 69.61 kB / 0.5152 GB, free: 340 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001037/0.3297, allocations: 0.6631 MB / 0.5158 GB, free: 132 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00391/0.3336, allocations: 2.655 MB / 0.5184 GB, free: 14.34 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005758/0.3342, allocations: 316.1 kB / 0.5187 GB, free: 14.2 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002955/0.3345, allocations: 208.4 kB / 0.5189 GB, free: 14.11 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.376e-05/0.3345, allocations: 4.375 kB / 0.5189 GB, free: 14.11 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.516e-05/0.3346, allocations: 36.88 kB / 0.519 GB, free: 14.07 MB / 398.1 MB Notification: Performance of pre-optimization done (n=39): time 2.294e-06/0.3346, allocations: 4 kB / 0.519 GB, free: 14.07 MB / 398.1 MB Notification: Performance of matching and sorting (n=40): time 0.002566/0.3372, allocations: 1.31 MB / 0.5203 GB, free: 13.37 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.951e-05/0.3373, allocations: 82.27 kB / 0.5203 GB, free: 13.27 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004452/0.3377, allocations: 290.2 kB / 0.5206 GB, free: 13.11 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.544e-05/0.3378, allocations: 31.2 kB / 0.5206 GB, free: 13.08 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002719/0.3381, allocations: 260.5 kB / 0.5209 GB, free: 12.86 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002207/0.3383, allocations: 150.5 kB / 0.521 GB, free: 12.74 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002065/0.3385, allocations: 86.61 kB / 0.5211 GB, free: 12.7 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000215/0.3387, allocations: 351.1 kB / 0.5215 GB, free: 12.36 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004638/0.3392, allocations: 186.3 kB / 0.5216 GB, free: 12.31 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006103/0.3398, allocations: 328 kB / 0.5219 GB, free: 12.09 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001205/0.341, allocations: 0.5615 MB / 0.5225 GB, free: 11.75 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.789e-06/0.3411, allocations: 1.438 kB / 0.5225 GB, free: 11.75 MB / 398.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001967/0.343, allocations: 0.6778 MB / 0.5232 GB, free: 11.48 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.436e-05/0.3431, allocations: 9.047 kB / 0.5232 GB, free: 11.48 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001317/0.3444, allocations: 496.7 kB / 0.5236 GB, free: 11.3 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006174/0.345, allocations: 108 kB / 0.5237 GB, free: 11.27 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005122/0.3456, allocations: 83.05 kB / 0.5238 GB, free: 11.26 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004541/0.3501, allocations: 3.275 MB / 0.527 GB, free: 8.25 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005243/0.3507, allocations: 28.45 kB / 0.527 GB, free: 8.238 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.584e-05/0.3508, allocations: 15.12 kB / 0.5271 GB, free: 8.238 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.0004507/0.3512, allocations: 204.9 kB / 0.5273 GB, free: 8.086 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001436/0.3514, allocations: 36.06 kB / 0.5273 GB, free: 8.066 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001145/0.3525, allocations: 471 kB / 0.5277 GB, free: 7.875 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.294e-05/0.3526, allocations: 11.47 kB / 0.5278 GB, free: 7.875 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/0.3526, allocations: 9.344 kB / 0.5278 GB, free: 7.867 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.966e-06/0.3526, allocations: 1.781 kB / 0.5278 GB, free: 7.867 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0022/0.3548, allocations: 1.017 MB / 0.5288 GB, free: 7.312 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.7e-06/0.3548, allocations: 1.344 kB / 0.5288 GB, free: 7.312 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005263/0.3554, allocations: 70.27 kB / 0.5288 GB, free: 7.305 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.915e-06/0.3554, allocations: 3.094 kB / 0.5288 GB, free: 7.305 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.053e-05/0.3555, allocations: 12 kB / 0.5288 GB, free: 7.297 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.412e-06/0.3555, allocations: 3.234 kB / 0.5288 GB, free: 7.297 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.3555, allocations: 1.156 kB / 0.5288 GB, free: 7.297 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001506/0.357, allocations: 0.7438 MB / 0.5296 GB, free: 6.93 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002549/0.3573, allocations: 145.8 kB / 0.5297 GB, free: 6.801 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.477e-05/0.3574, allocations: 13.12 kB / 0.5297 GB, free: 6.793 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003093/0.3577, allocations: 18.05 kB / 0.5297 GB, free: 6.789 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.29e-05/0.3578, allocations: 15.62 kB / 0.5298 GB, free: 6.789 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.855e-05/0.3578, allocations: 14.67 kB / 0.5298 GB, free: 6.781 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003316/0.3582, allocations: 204.2 kB / 0.53 GB, free: 6.672 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.3582, allocations: 0 / 0.53 GB, free: 6.672 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000902/0.3591, allocations: 119 kB / 0.5301 GB, free: 6.652 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.002262/0.3614, allocations: 1.322 MB / 0.5314 GB, free: 5.746 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001789/0.3632, allocations: 0.7037 MB / 0.5321 GB, free: 5.371 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.476e-06/0.3632, allocations: 0 / 0.5321 GB, free: 5.371 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005133/0.3637, allocations: 218.3 kB / 0.5323 GB, free: 5.297 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000865/0.3646, allocations: 71.67 kB / 0.5323 GB, free: 5.27 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009512/0.3741, allocations: 4.399 MB / 0.5366 GB, free: 2.523 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008149/0.375, allocations: 0.879 MB / 0.5375 GB, free: 1.734 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.00052/0.3755, allocations: 113.4 kB / 0.5376 GB, free: 1.684 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000358/0.3759, allocations: 140.1 kB / 0.5377 GB, free: 1.566 MB / 398.1 MB Notification: Performance of SimCode: time 9.42e-07/0.3759, allocations: 3.938 kB / 0.5377 GB, free: 1.562 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04998/0.4259, allocations: 8.182 MB / 0.5457 GB, free: 12.5 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.27/10.69, allocations: 8 kB / 0.5457 GB, free: 12.49 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