Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_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-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.Frequency,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_Frequency",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.Frequency,fileNamePrefix="PowerSystems_latest_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.0009244/0.0009243, allocations: 95.28 kB / 16.3 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.0009149/0.0009149, allocations: 184 kB / 17.2 MB, free: 5.914 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.415/1.415, allocations: 223.2 MB / 241.1 MB, free: 5.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.5059/0.5059, allocations: 38.07 MB / 330.3 MB, free: 14.22 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003233/0.0003233, allocations: 15.98 kB / 400.1 MB, free: 9.184 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3175/0.3178, allocations: 59.15 MB / 459.2 MB, free: 30.43 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Frequency): time 0.009005/0.3269, allocations: 5.84 MB / 465.1 MB, free: 26.26 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003235/0.3302, allocations: 1.532 MB / 466.6 MB, free: 25.17 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006588/0.3309, allocations: 49.66 kB / 466.6 MB, free: 25.14 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003784/0.3313, allocations: 92.67 kB / 466.7 MB, free: 25.1 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001505/0.3328, allocations: 353.5 kB / 467.1 MB, free: 24.87 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009525/0.3338, allocations: 204.6 kB / 467.3 MB, free: 24.77 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008051/0.3346, allocations: 395.8 kB / 467.7 MB, free: 24.57 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003273/0.3349, allocations: 124.2 kB / 467.8 MB, free: 24.52 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004155/0.3353, allocations: 238.2 kB / 468 MB, free: 24.39 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005078/0.3359, allocations: 231.8 kB / 468.2 MB, free: 24.31 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.46e-05/0.3359, allocations: 18.41 kB / 468.3 MB, free: 24.31 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.184e-05/0.336, allocations: 18.25 kB / 468.3 MB, free: 24.31 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001759/0.3362, allocations: 132.8 kB / 468.4 MB, free: 24.26 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001275/0.3363, allocations: 111.6 kB / 468.5 MB, free: 24.19 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004992/0.3368, allocations: 356 kB / 468.9 MB, free: 24.1 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.3368, allocations: 1.688 kB / 468.9 MB, free: 24.1 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.385e-06/0.3368, allocations: 3.938 kB / 468.9 MB, free: 24.1 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.644e-06/0.3369, allocations: 4 kB / 468.9 MB, free: 24.09 MB / 350.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.001207/0.3381, allocations: 0.7195 MB / 469.6 MB, free: 23.55 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.585e-05/0.3381, allocations: 10.09 kB / 469.6 MB, free: 23.55 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.895e-05/0.3382, allocations: 75.8 kB / 469.7 MB, free: 23.49 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.527e-05/0.3383, allocations: 53.56 kB / 469.7 MB, free: 23.46 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006479/0.339, allocations: 415.8 kB / 470.1 MB, free: 23.16 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.113e-05/0.339, allocations: 32.12 kB / 470.2 MB, free: 23.14 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.613e-05/0.3391, allocations: 36.06 kB / 470.2 MB, free: 23.13 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006869/0.3398, allocations: 457.3 kB / 470.6 MB, free: 22.88 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.742e-05/0.3398, allocations: 5.281 kB / 470.6 MB, free: 22.88 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.622e-05/0.3398, allocations: 13.08 kB / 470.7 MB, free: 22.87 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.377e-05/0.3399, allocations: 9.031 kB / 470.7 MB, free: 22.87 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005077/0.3404, allocations: 305 kB / 471 MB, free: 22.77 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001836/0.3422, allocations: 1.772 MB / 472.7 MB, free: 21.37 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002066/0.3424, allocations: 139.9 kB / 472.9 MB, free: 21.27 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.876e-05/0.3425, allocations: 10.86 kB / 472.9 MB, free: 21.26 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.381e-05/0.3425, allocations: 32.56 kB / 472.9 MB, free: 21.22 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.422e-06/0.3425, allocations: 3.938 kB / 472.9 MB, free: 21.21 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0009242/0.3434, allocations: 0.599 MB / 473.5 MB, free: 20.73 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.455e-05/0.3435, allocations: 117.8 kB / 473.6 MB, free: 20.59 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004253/0.3439, allocations: 368.8 kB / 474 MB, free: 20.41 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.627e-05/0.344, allocations: 31.64 kB / 474 MB, free: 20.37 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000146/0.3441, allocations: 278 kB / 474.3 MB, free: 20.14 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.33e-05/0.3442, allocations: 61.22 kB / 474.4 MB, free: 20.1 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.021e-05/0.3442, allocations: 4.781 kB / 474.4 MB, free: 20.09 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.586e-05/0.3443, allocations: 347.9 kB / 474.7 MB, free: 19.77 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.187e-05/0.3444, allocations: 46.16 kB / 474.8 MB, free: 19.75 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001621/0.3445, allocations: 191.7 kB / 474.9 MB, free: 19.54 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001276/0.3447, allocations: 81.98 kB / 475 MB, free: 19.5 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.3447, allocations: 1.75 kB / 475 MB, free: 19.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0003754/0.345, allocations: 288.6 kB / 475.3 MB, free: 19.36 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.831e-05/0.3451, allocations: 9.234 kB / 475.3 MB, free: 19.36 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.065e-06/0.3451, allocations: 4.125 kB / 475.3 MB, free: 19.36 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.996e-05/0.3451, allocations: 8.875 kB / 475.3 MB, free: 19.36 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002432/0.3454, allocations: 65.41 kB / 475.4 MB, free: 19.36 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.667e-05/0.3454, allocations: 20.12 kB / 475.4 MB, free: 19.35 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001563/0.3455, allocations: 14.78 kB / 475.4 MB, free: 19.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.754e-05/0.3456, allocations: 21.12 kB / 475.4 MB, free: 19.33 MB / 350.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.0001695/0.3458, allocations: 182.4 kB / 475.6 MB, free: 19.18 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.977e-05/0.3458, allocations: 33.08 kB / 475.7 MB, free: 19.16 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002816/0.3461, allocations: 167.9 kB / 475.8 MB, free: 19.07 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.559e-06/0.3461, allocations: 3.688 kB / 475.8 MB, free: 19.07 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.883e-06/0.3461, allocations: 9.219 kB / 475.8 MB, free: 19.07 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.346e-06/0.3462, allocations: 6.516 kB / 475.8 MB, free: 19.06 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006711/0.3468, allocations: 0.5248 MB / 476.4 MB, free: 18.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.3468, allocations: 1.125 kB / 476.4 MB, free: 18.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001802/0.347, allocations: 32.75 kB / 476.4 MB, free: 18.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.426e-06/0.347, allocations: 1.188 kB / 476.4 MB, free: 18.66 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.553e-05/0.3471, allocations: 7.062 kB / 476.4 MB, free: 18.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.38e-06/0.3471, allocations: 10.2 kB / 476.4 MB, free: 18.65 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.3471, allocations: 5.188 kB / 476.4 MB, free: 18.64 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003865/0.3475, allocations: 427.2 kB / 476.8 MB, free: 18.3 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.066e-05/0.3476, allocations: 116.8 kB / 476.9 MB, free: 18.18 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.399e-05/0.3476, allocations: 3.406 kB / 477 MB, free: 18.18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000167/0.3478, allocations: 5.125 kB / 477 MB, free: 18.18 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.569e-05/0.3478, allocations: 14.62 kB / 477 MB, free: 18.17 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.232e-05/0.3478, allocations: 5.297 kB / 477 MB, free: 18.17 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002565/0.3481, allocations: 252.5 kB / 477.2 MB, free: 18.04 MB / 350.1 MB Notification: Performance of sort global known variables: time 8.91e-07/0.3481, allocations: 0 / 477.2 MB, free: 18.04 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004009/0.3485, allocations: 77.75 kB / 477.3 MB, free: 18.03 MB / 350.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.0005495/0.3491, allocations: 1.168 MB / 478.5 MB, free: 16.95 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002591/0.3493, allocations: 149.3 kB / 478.6 MB, free: 16.9 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.3494, allocations: 0 / 478.6 MB, free: 16.9 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.904e-05/0.3494, allocations: 55.53 kB / 478.7 MB, free: 16.88 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005438/0.35, allocations: 91.23 kB / 478.8 MB, free: 16.85 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003836/0.3538, allocations: 5.461 MB / 484.2 MB, free: 12.27 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003778/0.3542, allocations: 0.8483 MB / 485.1 MB, free: 11.54 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001965/0.3544, allocations: 54.61 kB / 485.1 MB, free: 11.51 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001502/0.3546, allocations: 149.4 kB / 485.3 MB, free: 11.38 MB / 350.1 MB Notification: Performance of SimCode: time 5.01e-07/0.3546, allocations: 0 / 485.3 MB, free: 11.38 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01832/0.3729, allocations: 6.637 MB / 491.9 MB, free: 6.719 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001635/0.3731, allocations: 190 kB / 492.1 MB, free: 6.473 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.797/2.17, allocations: 0 / 492.1 MB, free: 6.473 MB / 350.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Introductory_Frequency_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Introductory_Frequency.fmu > PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency_res.mat does not exist to compare? outputFormat=mat