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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.0009952/0.0009952, allocations: 93.88 kB / 16.3 MB, free: 6.457 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.001117/0.001117, allocations: 184.1 kB / 17.19 MB, free: 6.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.862/1.862, allocations: 205.4 MB / 223.4 MB, free: 13.18 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.2015/0.2015, allocations: 38.04 MB / 309.7 MB, free: 6.141 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0006311/0.0006312, allocations: 16 kB / 376.6 MB, free: 3.113 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3123/0.3129, allocations: 56.34 MB / 432.9 MB, free: 18.81 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Frequency): time 0.004918/0.3179, allocations: 5.834 MB / 438.8 MB, free: 12.95 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0026/0.3206, allocations: 1.564 MB / 440.3 MB, free: 11.38 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004561/0.321, allocations: 47.69 kB / 440.4 MB, free: 11.34 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002537/0.3213, allocations: 91.27 kB / 440.5 MB, free: 11.25 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008348/0.3221, allocations: 358.8 kB / 440.8 MB, free: 10.89 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00044/0.3226, allocations: 199.7 kB / 441 MB, free: 10.7 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004031/0.323, allocations: 399.1 kB / 441.4 MB, free: 10.31 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002213/0.3232, allocations: 126.5 kB / 441.5 MB, free: 10.18 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002875/0.3235, allocations: 243.1 kB / 441.7 MB, free: 9.941 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003429/0.3239, allocations: 231.2 kB / 442 MB, free: 9.715 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.798e-05/0.3239, allocations: 20 kB / 442 MB, free: 9.695 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.237e-05/0.324, allocations: 16 kB / 442 MB, free: 9.68 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001046/0.3241, allocations: 131.6 kB / 442.1 MB, free: 9.551 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.991e-05/0.3242, allocations: 117.5 kB / 442.3 MB, free: 9.43 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002652/0.3245, allocations: 363 kB / 442.6 MB, free: 9.074 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.755e-06/0.3245, allocations: 0 / 442.6 MB, free: 9.074 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.3245, allocations: 0 / 442.6 MB, free: 9.074 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.034e-06/0.3245, allocations: 0 / 442.6 MB, free: 9.074 MB / 318.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.001033/0.3256, allocations: 0.7227 MB / 443.3 MB, free: 8.305 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.157e-05/0.3256, allocations: 15.97 kB / 443.3 MB, free: 8.289 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.319e-05/0.3257, allocations: 74.53 kB / 443.4 MB, free: 8.207 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.09e-05/0.3258, allocations: 51.34 kB / 443.5 MB, free: 8.156 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005475/0.3263, allocations: 415.4 kB / 443.9 MB, free: 7.711 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.307e-05/0.3264, allocations: 25 kB / 443.9 MB, free: 7.688 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.073e-05/0.3264, allocations: 36 kB / 443.9 MB, free: 7.652 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005058/0.3269, allocations: 455.6 kB / 444.4 MB, free: 7.168 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.621e-05/0.327, allocations: 0 / 444.4 MB, free: 7.168 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.464e-05/0.327, allocations: 19.95 kB / 444.4 MB, free: 7.148 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.816e-06/0.327, allocations: 12 kB / 444.4 MB, free: 7.137 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003878/0.3274, allocations: 308.5 kB / 444.7 MB, free: 6.836 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00149/0.3289, allocations: 1.775 MB / 446.5 MB, free: 4.949 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001749/0.3291, allocations: 143.7 kB / 446.6 MB, free: 4.781 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.73e-05/0.3291, allocations: 0 / 446.6 MB, free: 4.781 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.279e-05/0.3291, allocations: 34.62 kB / 446.7 MB, free: 4.738 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 1.112e-06/0.3291, allocations: 0 / 446.7 MB, free: 4.738 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0007938/0.3299, allocations: 0.6078 MB / 447.3 MB, free: 4.074 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.302e-05/0.33, allocations: 102.8 kB / 447.4 MB, free: 3.949 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002741/0.3303, allocations: 365.5 kB / 447.7 MB, free: 3.582 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.361e-05/0.3303, allocations: 29.7 kB / 447.8 MB, free: 3.547 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001249/0.3304, allocations: 283.4 kB / 448 MB, free: 3.266 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.027e-05/0.3305, allocations: 51.2 kB / 448.1 MB, free: 3.215 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.03e-05/0.3305, allocations: 8 kB / 448.1 MB, free: 3.207 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.299e-05/0.3306, allocations: 354.8 kB / 448.4 MB, free: 2.852 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.192e-05/0.3306, allocations: 47.97 kB / 448.5 MB, free: 2.805 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001207/0.3308, allocations: 194.9 kB / 448.7 MB, free: 2.547 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001086/0.3309, allocations: 67.94 kB / 448.7 MB, free: 2.48 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.3309, allocations: 7.953 kB / 448.7 MB, free: 2.473 MB / 318.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0003234/0.3312, allocations: 297.2 kB / 449 MB, free: 2.176 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.695e-05/0.3313, allocations: 8 kB / 449 MB, free: 2.168 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.386e-06/0.3313, allocations: 12.52 kB / 449.1 MB, free: 2.156 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.788e-05/0.3313, allocations: 8 kB / 449.1 MB, free: 2.148 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000227/0.3315, allocations: 67.91 kB / 449.1 MB, free: 2.082 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.043e-05/0.3315, allocations: 7.938 kB / 449.1 MB, free: 2.074 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001527/0.3317, allocations: 19.98 kB / 449.2 MB, free: 2.055 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.634e-05/0.3317, allocations: 12 kB / 449.2 MB, free: 2.043 MB / 318.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001509/0.3319, allocations: 185.7 kB / 449.4 MB, free: 1.852 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.726e-05/0.3319, allocations: 39.48 kB / 449.4 MB, free: 1.812 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002439/0.3322, allocations: 176.7 kB / 449.6 MB, free: 1.637 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/0.3322, allocations: 0 / 449.6 MB, free: 1.637 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.742e-06/0.3322, allocations: 4.438 kB / 449.6 MB, free: 1.633 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.3322, allocations: 0 / 449.6 MB, free: 1.633 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004995/0.3327, allocations: 0.5341 MB / 450.1 MB, free: 1.039 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.3327, allocations: 8 kB / 450.1 MB, free: 1.031 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001631/0.3329, allocations: 31.98 kB / 450.1 MB, free: 1 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.836e-06/0.3329, allocations: 32 / 450.1 MB, free: 1 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.463e-05/0.3329, allocations: 15.98 kB / 450.2 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.863e-06/0.333, allocations: 0 / 450.2 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.333, allocations: 4 kB / 450.2 MB, free: 0.9805 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003174/0.3333, allocations: 425.4 kB / 450.6 MB, free: 0.5234 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.453e-05/0.3334, allocations: 116.7 kB / 450.7 MB, free: 400 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.058e-05/0.3334, allocations: 0 / 450.7 MB, free: 400 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001517/0.3336, allocations: 8 kB / 450.7 MB, free: 392 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.366e-05/0.3336, allocations: 11.94 kB / 450.7 MB, free: 380 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.168e-05/0.3336, allocations: 12 kB / 450.7 MB, free: 368 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001828/0.3338, allocations: 247.2 kB / 451 MB, free: 124 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3338, allocations: 0 / 451 MB, free: 124 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003685/0.3342, allocations: 76 kB / 451 MB, free: 48 kB / 318.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008442/0.335, allocations: 1.17 MB / 452.2 MB, free: 14.84 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002702/0.3353, allocations: 156.8 kB / 452.4 MB, free: 14.68 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.3353, allocations: 0 / 452.4 MB, free: 14.68 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.967e-05/0.3354, allocations: 56.11 kB / 452.4 MB, free: 14.63 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005428/0.336, allocations: 86.03 kB / 452.5 MB, free: 14.55 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004659/0.3406, allocations: 5.455 MB / 458 MB, free: 8.934 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005264/0.3412, allocations: 0.8467 MB / 458.8 MB, free: 8.062 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000184/0.3414, allocations: 51.25 kB / 458.8 MB, free: 8.016 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001936/0.3416, allocations: 151.4 kB / 459 MB, free: 7.867 MB / 334.1 MB Notification: Performance of SimCode: time 7.21e-07/0.3416, allocations: 0 / 459 MB, free: 7.867 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01886/0.3604, allocations: 6.636 MB / 465.6 MB, free: 1.289 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001851/0.3607, allocations: 173.8 kB / 465.8 MB, free: 1.047 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.777/2.138, allocations: 0 / 465.8 MB, free: 1.047 MB / 334.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/linux/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) Environment - environmentSimulation: