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/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001444/0.001444, allocations: 175.5 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.628/1.628, allocations: 205.2 MB / 219.4 MB, free: 14.2 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008808/0.0008817, allocations: 78.67 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1688/0.1688, allocations: 37.99 MB / 353.5 MB, free: 1.742 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.979e-05/3.009e-05, allocations: 0 / 417.8 MB, free: 29.04 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.111/0.1111, allocations: 56.33 MB / 474.1 MB, free: 4.699 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4091/0.5203, allocations: 95.02 MB / 0.5558 GB, free: 7.531 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002128/0.5206, allocations: 79.95 kB / 0.5559 GB, free: 7.496 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02495/0.5455, allocations: 10.21 MB / 0.5659 GB, free: 14.73 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.5456, allocations: 7.938 kB / 0.5659 GB, free: 14.72 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.898e-05/0.5456, allocations: 12 kB / 0.5659 GB, free: 14.71 MB / 378.7 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.001104/0.5467, allocations: 0.675 MB / 0.5666 GB, free: 14.02 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.043e-05/0.5468, allocations: 12.03 kB / 0.5666 GB, free: 14 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.431e-05/0.5469, allocations: 73.38 kB / 0.5666 GB, free: 13.95 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001027/0.547, allocations: 59.3 kB / 0.5667 GB, free: 13.89 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002533/0.5496, allocations: 1.011 MB / 0.5677 GB, free: 13 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.82e-05/0.5496, allocations: 30.78 kB / 0.5677 GB, free: 12.98 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.337e-05/0.5497, allocations: 35.31 kB / 0.5677 GB, free: 12.96 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006985/0.5504, allocations: 448.3 kB / 0.5682 GB, free: 12.59 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.415e-05/0.5504, allocations: 7.938 kB / 0.5682 GB, free: 12.59 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.34e-05/0.5505, allocations: 17.19 kB / 0.5682 GB, free: 12.58 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.326e-05/0.5505, allocations: 8 kB / 0.5682 GB, free: 12.57 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004668/0.5509, allocations: 306.6 kB / 0.5685 GB, free: 12.36 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002048/0.553, allocations: 1.754 MB / 0.5702 GB, free: 10.7 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000222/0.5532, allocations: 141.4 kB / 0.5703 GB, free: 10.56 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.981e-05/0.5533, allocations: 63.45 kB / 0.5704 GB, free: 10.51 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.88e-05/0.5534, allocations: 0 / 0.5704 GB, free: 10.51 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.923e-05/0.5534, allocations: 42.48 kB / 0.5704 GB, free: 10.46 MB / 378.7 MB Notification: Performance of pre-optimization done (n=14): time 3.266e-06/0.5534, allocations: 0 / 0.5704 GB, free: 10.46 MB / 378.7 MB Notification: Performance of matching and sorting (n=15): time 0.0009351/0.5544, allocations: 0.5707 MB / 0.571 GB, free: 9.867 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.355e-05/0.5545, allocations: 106.8 kB / 0.5711 GB, free: 9.738 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003334/0.5548, allocations: 316.8 kB / 0.5714 GB, free: 9.477 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.146e-05/0.5548, allocations: 28.7 kB / 0.5714 GB, free: 9.445 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001816/0.555, allocations: 294.8 kB / 0.5717 GB, free: 9.219 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.844e-05/0.5551, allocations: 46.98 kB / 0.5718 GB, free: 9.18 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.186e-05/0.5551, allocations: 10.88 kB / 0.5718 GB, free: 9.176 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001574/0.5552, allocations: 344.4 kB / 0.5721 GB, free: 8.844 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.036e-05/0.5553, allocations: 50.08 kB / 0.5721 GB, free: 8.809 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001818/0.5555, allocations: 191.6 kB / 0.5723 GB, free: 8.578 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001293/0.5557, allocations: 73.91 kB / 0.5724 GB, free: 8.523 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.5557, allocations: 4 kB / 0.5724 GB, free: 8.52 MB / 378.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0004222/0.5561, allocations: 292.1 kB / 0.5727 GB, free: 8.273 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.838e-05/0.5561, allocations: 8 kB / 0.5727 GB, free: 8.266 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.215e-06/0.5561, allocations: 4 kB / 0.5727 GB, free: 8.262 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.186e-05/0.5562, allocations: 8 kB / 0.5727 GB, free: 8.254 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000251/0.5564, allocations: 71.59 kB / 0.5728 GB, free: 8.188 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.451e-05/0.5564, allocations: 7.938 kB / 0.5728 GB, free: 8.18 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001631/0.5566, allocations: 18.59 kB / 0.5728 GB, free: 8.164 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.073e-05/0.5566, allocations: 15 kB / 0.5728 GB, free: 8.152 MB / 378.7 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 () * 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 9.691e-05/0.5567, allocations: 130.7 kB / 0.5729 GB, free: 8.027 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.146e-05/0.5568, allocations: 43.52 kB / 0.573 GB, free: 7.984 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002833/0.5571, allocations: 168.2 kB / 0.5731 GB, free: 7.855 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.899e-06/0.5571, allocations: 4 kB / 0.5731 GB, free: 7.852 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.421e-06/0.5571, allocations: 0 / 0.5731 GB, free: 7.852 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.93e-06/0.5572, allocations: 0 / 0.5731 GB, free: 7.852 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006317/0.5578, allocations: 0.5342 MB / 0.5737 GB, free: 7.344 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.526e-06/0.5578, allocations: 4.094 kB / 0.5737 GB, free: 7.34 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001761/0.558, allocations: 39.95 kB / 0.5737 GB, free: 7.301 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.336e-06/0.558, allocations: 0 / 0.5737 GB, free: 7.301 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.579e-05/0.558, allocations: 7.375 kB / 0.5737 GB, free: 7.297 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.884e-06/0.558, allocations: 0 / 0.5737 GB, free: 7.297 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.558, allocations: 80 / 0.5737 GB, free: 7.297 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004284/0.5585, allocations: 437.5 kB / 0.5741 GB, free: 6.879 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.41e-05/0.5586, allocations: 108.6 kB / 0.5742 GB, free: 6.754 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.632e-05/0.5586, allocations: 7.375 kB / 0.5742 GB, free: 6.75 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000154/0.5588, allocations: 11.59 kB / 0.5742 GB, free: 6.742 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.872e-05/0.5588, allocations: 11.94 kB / 0.5743 GB, free: 6.73 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.148e-05/0.5588, allocations: 8 kB / 0.5743 GB, free: 6.723 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002262/0.5591, allocations: 246.5 kB / 0.5745 GB, free: 6.527 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5591, allocations: 3.938 kB / 0.5745 GB, free: 6.523 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003808/0.5595, allocations: 77.81 kB / 0.5746 GB, free: 6.457 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (voltage2.theta,ind2.i,ind1.i) * Number of discrete variables: 1 (system.initime) * Number of discrete 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.0008152/0.5603, allocations: 1.17 MB / 0.5757 GB, free: 5.293 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002511/0.5605, allocations: 147.3 kB / 0.5759 GB, free: 5.18 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.5606, allocations: 384 / 0.5759 GB, free: 5.18 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 9.397e-05/0.5607, allocations: 65.72 kB / 0.5759 GB, free: 5.129 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005297/0.5612, allocations: 82.52 kB / 0.576 GB, free: 5.07 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001441/0.5627, allocations: 0.7537 MB / 0.5767 GB, free: 4.324 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004842/0.5631, allocations: 0.8483 MB / 0.5776 GB, free: 3.457 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001857/0.5633, allocations: 47.27 kB / 0.5776 GB, free: 3.41 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001708/0.5635, allocations: 153.8 kB / 0.5778 GB, free: 3.363 MB / 378.7 MB Notification: Performance of SimCode: time 7.52e-07/0.5635, allocations: 0 / 0.5778 GB, free: 3.363 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02088/0.5844, allocations: 6.537 MB / 0.5841 GB, free: 12.88 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002119/0.5847, allocations: 156.4 kB / 0.5843 GB, free: 12.65 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.203/2.787, allocations: 0 / 0.5843 GB, free: 12.65 MB / 394.7 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) 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