Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Introductory.InitialSteadyState.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.Introductory.InitialSteadyState,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_InitialSteadyState",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.InitialSteadyState,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_InitialSteadyState",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.001716/0.001721, allocations: 107.7 kB / 17.06 MB, free: 6.098 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.002042/0.002042, allocations: 198.9 kB / 18 MB, free: 5.168 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.372/1.372, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1779/0.1779, allocations: 38.05 MB / 329.9 MB, free: 8.742 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001243/0.001243, allocations: 63.91 kB / 457.6 MB, free: 7.371 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3067/0.308, allocations: 58.06 MB / 0.5036 GB, free: 7.445 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.InitialSteadyState): time 0.005143/0.3132, allocations: 4.422 MB / 0.5079 GB, free: 4.371 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002047/0.3152, allocations: 1.419 MB / 0.5093 GB, free: 3.383 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001903/0.3155, allocations: 17.66 kB / 0.5093 GB, free: 3.375 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009586/0.3164, allocations: 378.5 kB / 0.5097 GB, free: 3.148 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005993/0.317, allocations: 254.2 kB / 0.5099 GB, free: 3.008 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006733/0.3177, allocations: 243.2 kB / 0.5102 GB, free: 2.902 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006128/0.3183, allocations: 0.5588 MB / 0.5107 GB, free: 2.668 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003976/0.3187, allocations: 279.1 kB / 0.511 GB, free: 2.57 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003658/0.3191, allocations: 271 kB / 0.5112 GB, free: 2.449 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004795/0.3196, allocations: 355.1 kB / 0.5116 GB, free: 2.328 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.28e-05/0.3197, allocations: 43.5 kB / 0.5116 GB, free: 2.324 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004214/0.3201, allocations: 218.8 kB / 0.5118 GB, free: 2.273 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002302/0.3204, allocations: 240.5 kB / 0.5121 GB, free: 2.191 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002462/0.3206, allocations: 257.2 kB / 0.5123 GB, free: 2.043 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000786/0.3214, allocations: 0.6759 MB / 0.513 GB, free: 1.793 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.955e-06/0.3214, allocations: 0 / 0.513 GB, free: 1.793 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.3214, allocations: 1.062 kB / 0.513 GB, free: 1.793 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.042e-05/0.3214, allocations: 0 / 0.513 GB, free: 1.793 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: 118 * Number of variables: 118 Notification: Performance of Generate backend data structure: time 0.001337/0.3228, allocations: 0.7831 MB / 0.5137 GB, free: 1.199 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.913e-05/0.3228, allocations: 13.7 kB / 0.5137 GB, free: 1.195 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.076e-05/0.3229, allocations: 83.8 kB / 0.5138 GB, free: 1.133 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006608/0.3236, allocations: 99.78 kB / 0.5139 GB, free: 1.098 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007024/0.3243, allocations: 429.9 kB / 0.5143 GB, free: 0.7891 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.584e-05/0.3243, allocations: 29.59 kB / 0.5143 GB, free: 0.7734 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001485/0.3245, allocations: 53.03 kB / 0.5144 GB, free: 0.7539 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001007/0.3255, allocations: 0.6704 MB / 0.5151 GB, free: 460 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.139e-05/0.3256, allocations: 1.375 kB / 0.5151 GB, free: 460 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.216e-05/0.3256, allocations: 20.88 kB / 0.5151 GB, free: 444 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001894/0.3258, allocations: 55.81 kB / 0.5151 GB, free: 436 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001066/0.3269, allocations: 0.6702 MB / 0.5158 GB, free: 224 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003847/0.3307, allocations: 2.431 MB / 0.5182 GB, free: 14.62 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006029/0.3314, allocations: 365 kB / 0.5185 GB, free: 14.46 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003514/0.3317, allocations: 250.6 kB / 0.5187 GB, free: 14.36 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.518e-05/0.3318, allocations: 8.75 kB / 0.5188 GB, free: 14.36 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.987e-05/0.3318, allocations: 45.41 kB / 0.5188 GB, free: 14.31 MB / 398.1 MB Notification: Performance of pre-optimization done (n=45): time 2.345e-06/0.3318, allocations: 0 / 0.5188 GB, free: 14.31 MB / 398.1 MB Notification: Performance of matching and sorting (n=46): time 0.002374/0.3342, allocations: 1.478 MB / 0.5202 GB, free: 13.56 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.22e-05/0.3343, allocations: 81.08 kB / 0.5203 GB, free: 13.46 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003519/0.3346, allocations: 280.7 kB / 0.5206 GB, free: 13.31 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.584e-05/0.3347, allocations: 30.64 kB / 0.5206 GB, free: 13.28 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001754/0.3349, allocations: 263.6 kB / 0.5209 GB, free: 13.05 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001402/0.335, allocations: 169.8 kB / 0.521 GB, free: 12.92 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001519/0.3352, allocations: 94.89 kB / 0.5211 GB, free: 12.87 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001339/0.3353, allocations: 350.4 kB / 0.5215 GB, free: 12.54 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003251/0.3356, allocations: 215.4 kB / 0.5217 GB, free: 12.48 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004118/0.3361, allocations: 362.9 kB / 0.522 GB, free: 12.25 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007873/0.3369, allocations: 0.63 MB / 0.5226 GB, free: 11.89 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.3369, allocations: 1.375 kB / 0.5226 GB, free: 11.89 MB / 398.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001314/0.3382, allocations: 0.7265 MB / 0.5233 GB, free: 11.6 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.812e-05/0.3382, allocations: 12.09 kB / 0.5233 GB, free: 11.59 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0008822/0.3391, allocations: 0.516 MB / 0.5238 GB, free: 11.43 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003482/0.3395, allocations: 74.06 kB / 0.5239 GB, free: 11.41 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004323/0.3399, allocations: 109.8 kB / 0.524 GB, free: 11.39 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001701/0.3416, allocations: 1.732 MB / 0.5257 GB, free: 9.859 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003574/0.342, allocations: 30.55 kB / 0.5257 GB, free: 9.852 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.622e-05/0.3421, allocations: 20.42 kB / 0.5258 GB, free: 9.848 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 (54): * Single equations (assignments): 51 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000341/0.3424, allocations: 219.5 kB / 0.526 GB, free: 9.684 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001283/0.3426, allocations: 45.05 kB / 0.526 GB, free: 9.656 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009783/0.3435, allocations: 0.5621 MB / 0.5266 GB, free: 9.43 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.558e-05/0.3436, allocations: 11.02 kB / 0.5266 GB, free: 9.43 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.3436, allocations: 2.078 kB / 0.5266 GB, free: 9.43 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.674e-06/0.3436, allocations: 2.016 kB / 0.5266 GB, free: 9.43 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002159/0.3458, allocations: 1.194 MB / 0.5277 GB, free: 8.816 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.801e-06/0.3458, allocations: 1.219 kB / 0.5277 GB, free: 8.816 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004268/0.3462, allocations: 85.75 kB / 0.5278 GB, free: 8.809 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.925e-06/0.3462, allocations: 2.562 kB / 0.5278 GB, free: 8.809 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.598e-05/0.3463, allocations: 9.875 kB / 0.5278 GB, free: 8.805 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.394e-06/0.3463, allocations: 7.109 kB / 0.5278 GB, free: 8.801 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.464e-06/0.3463, allocations: 1.531 kB / 0.5278 GB, free: 8.801 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001231/0.3475, allocations: 0.9324 MB / 0.5288 GB, free: 8.355 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001182/0.3477, allocations: 113.5 kB / 0.5289 GB, free: 8.238 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.944e-05/0.3477, allocations: 8.953 kB / 0.5289 GB, free: 8.234 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002386/0.348, allocations: 23.34 kB / 0.5289 GB, free: 8.227 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.603e-05/0.3481, allocations: 36.12 kB / 0.5289 GB, free: 8.211 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.278e-05/0.3481, allocations: 10.05 kB / 0.5289 GB, free: 8.211 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002173/0.3483, allocations: 198.7 kB / 0.5291 GB, free: 8.102 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.3483, allocations: 0 / 0.5291 GB, free: 8.102 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006253/0.349, allocations: 120.8 kB / 0.5292 GB, free: 8.086 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 3 (load_dq0.i[1],load_dq0.i[2],load_dq0.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 (39): * Single equations (assignments): 36 * 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.001655/0.3506, allocations: 1.52 MB / 0.5307 GB, free: 7.082 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001146/0.3518, allocations: 0.6646 MB / 0.5314 GB, free: 6.801 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.3518, allocations: 0 / 0.5314 GB, free: 6.801 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003628/0.3522, allocations: 268.4 kB / 0.5316 GB, free: 6.711 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005478/0.3527, allocations: 66.16 kB / 0.5317 GB, free: 6.68 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006125/0.3589, allocations: 4.584 MB / 0.5362 GB, free: 3.836 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004755/0.3594, allocations: 0.8728 MB / 0.537 GB, free: 3.051 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003465/0.3597, allocations: 131.2 kB / 0.5371 GB, free: 3 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002309/0.36, allocations: 146.5 kB / 0.5373 GB, free: 2.879 MB / 398.1 MB Notification: Performance of SimCode: time 8.12e-07/0.36, allocations: 0 / 0.5373 GB, free: 2.879 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03011/0.3901, allocations: 8.635 MB / 0.5457 GB, free: 12.67 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.722/10.11, allocations: 4.062 kB / 0.5457 GB, free: 12.66 MB / 414.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.Introductory.InitialSteadyState.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Introductory.InitialSteadyState.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Introductory.InitialSteadyState.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Introductory.InitialSteadyState.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.Introductory.InitialSteadyState_res.csv --start-time 0 --stop-time 0.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 PowerSystems_latest_PowerSystems_Examples_Introductory_InitialSteadyState.fmu > PowerSystems_latest_PowerSystems.Examples.Introductory.InitialSteadyState.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Introductory.InitialSteadyState_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Introductory.InitialSteadyState.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Introductory.InitialSteadyState.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches