Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Introductory.Frequency.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/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/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.Frequency,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_Frequency",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.Frequency,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_Frequency",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.001804/0.001804, allocations: 115.6 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.001953/0.001953, allocations: 192 kB / 18 MB, free: 5.074 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.396/1.396, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1803/0.1803, allocations: 38.03 MB / 329.9 MB, free: 8.68 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001967/0.001967, allocations: 68.12 kB / 457.6 MB, free: 7.336 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3222/0.3241, allocations: 58.05 MB / 0.5036 GB, free: 7.418 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Frequency): time 0.005508/0.3297, allocations: 5.438 MB / 0.5089 GB, free: 3.613 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001771/0.3315, allocations: 1.107 MB / 0.51 GB, free: 2.824 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000248/0.3318, allocations: 19.16 kB / 0.51 GB, free: 2.816 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002375/0.332, allocations: 78.27 kB / 0.5101 GB, free: 2.77 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000673/0.3328, allocations: 297 kB / 0.5104 GB, free: 2.59 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003066/0.3331, allocations: 145.4 kB / 0.5105 GB, free: 2.516 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007051/0.3338, allocations: 0.6973 MB / 0.5112 GB, free: 2.199 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002775/0.3341, allocations: 177 kB / 0.5114 GB, free: 2.129 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004727/0.3346, allocations: 316.6 kB / 0.5117 GB, free: 1.977 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000511/0.3351, allocations: 326.5 kB / 0.512 GB, free: 1.852 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.37e-05/0.3352, allocations: 32.25 kB / 0.512 GB, free: 1.852 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.72e-05/0.3352, allocations: 34.16 kB / 0.512 GB, free: 1.852 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000172/0.3354, allocations: 161.1 kB / 0.5122 GB, free: 1.785 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002167/0.3356, allocations: 241.7 kB / 0.5124 GB, free: 1.645 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005783/0.3362, allocations: 498.8 kB / 0.5129 GB, free: 1.441 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.411e-06/0.3362, allocations: 4 kB / 0.5129 GB, free: 1.438 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.923e-06/0.3363, allocations: 0 / 0.5129 GB, free: 1.438 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.858e-06/0.3363, allocations: 1.094 kB / 0.5129 GB, free: 1.438 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.00128/0.3376, allocations: 0.8049 MB / 0.5137 GB, free: 0.8281 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.425e-05/0.3376, allocations: 16.95 kB / 0.5137 GB, free: 0.8203 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.521e-05/0.3377, allocations: 80 kB / 0.5138 GB, free: 0.7539 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.657e-05/0.3378, allocations: 55.69 kB / 0.5138 GB, free: 0.7266 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006846/0.3385, allocations: 463.9 kB / 0.5143 GB, free: 416 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.682e-05/0.3385, allocations: 28.19 kB / 0.5143 GB, free: 404 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.08e-05/0.3386, allocations: 37.08 kB / 0.5143 GB, free: 392 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007098/0.3393, allocations: 458.2 kB / 0.5148 GB, free: 140 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.213e-05/0.3393, allocations: 5.781 kB / 0.5148 GB, free: 136 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.578e-05/0.3394, allocations: 15.72 kB / 0.5148 GB, free: 124 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.504e-05/0.3394, allocations: 12.81 kB / 0.5148 GB, free: 120 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005401/0.3399, allocations: 305.4 kB / 0.5151 GB, free: 24 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002385/0.3423, allocations: 1.77 MB / 0.5168 GB, free: 14.62 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002665/0.3426, allocations: 141.1 kB / 0.517 GB, free: 14.52 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001052/0.3427, allocations: 57.42 kB / 0.517 GB, free: 14.48 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.28e-05/0.3428, allocations: 6.906 kB / 0.517 GB, free: 14.47 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.747e-05/0.3428, allocations: 37.75 kB / 0.5171 GB, free: 14.43 MB / 398.1 MB Notification: Performance of pre-optimization done (n=14): time 2.295e-06/0.3428, allocations: 0 / 0.5171 GB, free: 14.43 MB / 398.1 MB Notification: Performance of matching and sorting (n=15): time 0.001244/0.3441, allocations: 0.6163 MB / 0.5177 GB, free: 13.93 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.032e-05/0.3442, allocations: 106.2 kB / 0.5178 GB, free: 13.8 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005385/0.3447, allocations: 369.6 kB / 0.5181 GB, free: 13.62 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.873e-05/0.3447, allocations: 30.23 kB / 0.5181 GB, free: 13.58 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002479/0.345, allocations: 287.9 kB / 0.5184 GB, free: 13.35 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.837e-05/0.3451, allocations: 64.53 kB / 0.5185 GB, free: 13.3 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001089/0.3452, allocations: 57.14 kB / 0.5185 GB, free: 13.26 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001993/0.3454, allocations: 351.7 kB / 0.5189 GB, free: 12.93 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001211/0.3455, allocations: 49.06 kB / 0.5189 GB, free: 12.91 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002421/0.3458, allocations: 196.9 kB / 0.5191 GB, free: 12.7 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003445/0.3461, allocations: 261.1 kB / 0.5193 GB, free: 12.46 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.3461, allocations: 5.438 kB / 0.5194 GB, free: 12.45 MB / 398.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0004554/0.3466, allocations: 298.2 kB / 0.5196 GB, free: 12.31 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.77e-05/0.3466, allocations: 11.19 kB / 0.5196 GB, free: 12.3 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.538e-06/0.3466, allocations: 4.875 kB / 0.5197 GB, free: 12.3 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.686e-05/0.3467, allocations: 11.78 kB / 0.5197 GB, free: 12.3 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002573/0.3469, allocations: 72.12 kB / 0.5197 GB, free: 12.29 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.698e-05/0.347, allocations: 16.53 kB / 0.5197 GB, free: 12.28 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001819/0.3472, allocations: 11.38 kB / 0.5198 GB, free: 12.28 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.818e-05/0.3472, allocations: 17.11 kB / 0.5198 GB, free: 12.27 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * 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 (37): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002289/0.3474, allocations: 183.1 kB / 0.5199 GB, free: 12.12 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.004e-05/0.3475, allocations: 40.73 kB / 0.52 GB, free: 12.1 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003343/0.3478, allocations: 173.2 kB / 0.5202 GB, free: 12 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.356e-06/0.3479, allocations: 6.391 kB / 0.5202 GB, free: 11.99 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.983e-06/0.3479, allocations: 1.797 kB / 0.5202 GB, free: 11.99 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.562e-06/0.3479, allocations: 2.266 kB / 0.5202 GB, free: 11.99 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008221/0.3487, allocations: 0.525 MB / 0.5207 GB, free: 11.59 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.01e-06/0.3487, allocations: 2.156 kB / 0.5207 GB, free: 11.59 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001836/0.3489, allocations: 31.7 kB / 0.5207 GB, free: 11.59 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.957e-06/0.3489, allocations: 5.188 kB / 0.5207 GB, free: 11.59 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.425e-05/0.349, allocations: 3.062 kB / 0.5207 GB, free: 11.59 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.775e-06/0.349, allocations: 2.125 kB / 0.5207 GB, free: 11.59 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.645e-06/0.349, allocations: 9.703 kB / 0.5207 GB, free: 11.58 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004771/0.3495, allocations: 395.9 kB / 0.5211 GB, free: 11.28 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001081/0.3496, allocations: 119.8 kB / 0.5212 GB, free: 11.16 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.255e-05/0.3496, allocations: 3.078 kB / 0.5212 GB, free: 11.16 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000163/0.3498, allocations: 10.06 kB / 0.5212 GB, free: 11.15 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.653e-05/0.3498, allocations: 10.16 kB / 0.5212 GB, free: 11.15 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.502e-05/0.3499, allocations: 13.39 kB / 0.5213 GB, free: 11.14 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003065/0.3502, allocations: 250.1 kB / 0.5215 GB, free: 11.02 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3502, allocations: 1.656 kB / 0.5215 GB, free: 11.02 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004667/0.3507, allocations: 73.09 kB / 0.5216 GB, free: 11.01 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (ind1.i,voltage2.theta,ind2.i) * 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 (18): * Single equations (assignments): 17 * Array equations: 0 * 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.0007736/0.3514, allocations: 0.9356 MB / 0.5225 GB, free: 10.17 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003208/0.3518, allocations: 157.6 kB / 0.5226 GB, free: 10.12 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.3518, allocations: 0 / 0.5226 GB, free: 10.12 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001004/0.3519, allocations: 59.38 kB / 0.5227 GB, free: 10.1 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000703/0.3526, allocations: 99.28 kB / 0.5228 GB, free: 10.06 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004586/0.3572, allocations: 3.407 MB / 0.5261 GB, free: 7.625 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005993/0.3578, allocations: 0.84 MB / 0.5269 GB, free: 6.914 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002354/0.3581, allocations: 54.53 kB / 0.527 GB, free: 6.891 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000231/0.3583, allocations: 151 kB / 0.5271 GB, free: 6.781 MB / 398.1 MB Notification: Performance of SimCode: time 2.905e-06/0.3583, allocations: 0 / 0.5271 GB, free: 6.781 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03956/0.3979, allocations: 7.037 MB / 0.534 GB, free: 4.68 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.282/8.68, allocations: 2.156 kB / 0.534 GB, free: 4.68 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.Introductory.Frequency.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Introductory.Frequency.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Introductory.Frequency.pipe >> ../files/PowerSystems_PowerSystems.Examples.Introductory.Frequency.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_Introductory_Frequency_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_Introductory_Frequency.fmu > PowerSystems_PowerSystems.Examples.Introductory.Frequency.pipe 2>&1)