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.0009481/0.0009481, allocations: 175.9 kB / 8.348 MB, free: 0.7227 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.495/1.495, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001032/0.001032, allocations: 86.28 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.224/0.224, allocations: 38 MB / 348 MB, free: 7.766 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.437e-05/1.446e-05, allocations: 4 kB / 410.7 MB, free: 46.87 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1019/0.1019, allocations: 56.32 MB / 467 MB, free: 6.48 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4134/0.5154, allocations: 94.36 MB / 0.5482 GB, free: 0.5156 MB / 379.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002879/0.5157, allocations: 75.97 kB / 0.5483 GB, free: 452 kB / 379.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.03051/0.5462, allocations: 10.13 MB / 0.5581 GB, free: 6.223 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.5463, allocations: 0 / 0.5581 GB, free: 6.223 MB / 395.1 MB Notification: Performance of Transformations before backend: time 3.153e-05/0.5463, allocations: 16 kB / 0.5582 GB, free: 6.207 MB / 395.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.001116/0.5475, allocations: 0.6757 MB / 0.5588 GB, free: 5.48 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.851e-05/0.5475, allocations: 8.031 kB / 0.5588 GB, free: 5.473 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000113/0.5476, allocations: 63.62 kB / 0.5589 GB, free: 5.41 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00246/0.5501, allocations: 1.003 MB / 0.5599 GB, free: 4.367 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.183e-05/0.5501, allocations: 12 kB / 0.5599 GB, free: 4.355 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.642e-05/0.5502, allocations: 20 kB / 0.5599 GB, free: 4.336 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004988/0.5507, allocations: 277.4 kB / 0.5602 GB, free: 4.062 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000609/0.5513, allocations: 395 kB / 0.5605 GB, free: 3.637 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.892e-05/0.5514, allocations: 3.984 kB / 0.5605 GB, free: 3.633 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.486e-05/0.5514, allocations: 8 kB / 0.5606 GB, free: 3.625 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.479e-05/0.5514, allocations: 11.95 kB / 0.5606 GB, free: 3.613 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001972/0.5534, allocations: 1.678 MB / 0.5622 GB, free: 1.832 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002058/0.5536, allocations: 123.9 kB / 0.5623 GB, free: 1.684 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.002e-05/0.5537, allocations: 54.64 kB / 0.5624 GB, free: 1.621 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.745e-05/0.5537, allocations: 0 / 0.5624 GB, free: 1.621 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.279e-05/0.5538, allocations: 50.59 kB / 0.5624 GB, free: 1.562 MB / 395.1 MB Notification: Performance of pre-optimization done (n=14): time 1.432e-06/0.5538, allocations: 3.938 kB / 0.5624 GB, free: 1.559 MB / 395.1 MB Notification: Performance of matching and sorting (n=15): time 0.0008656/0.5547, allocations: 0.5451 MB / 0.563 GB, free: 0.957 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.194e-05/0.5547, allocations: 102.8 kB / 0.5631 GB, free: 0.832 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002955/0.5551, allocations: 285.2 kB / 0.5633 GB, free: 0.5508 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 1.93e-05/0.5551, allocations: 25.7 kB / 0.5634 GB, free: 0.5195 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002151/0.5553, allocations: 283.5 kB / 0.5636 GB, free: 240 kB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.303e-05/0.5554, allocations: 55.28 kB / 0.5637 GB, free: 184 kB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.336e-06/0.5554, allocations: 0 / 0.5637 GB, free: 184 kB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001562/0.5555, allocations: 346.8 kB / 0.564 GB, free: 15.83 MB / 411.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.621e-05/0.5556, allocations: 44.03 kB / 0.5641 GB, free: 15.79 MB / 411.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001747/0.5558, allocations: 187.3 kB / 0.5642 GB, free: 15.54 MB / 411.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001242/0.5559, allocations: 72.05 kB / 0.5643 GB, free: 15.47 MB / 411.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.506e-06/0.5559, allocations: 4 kB / 0.5643 GB, free: 15.46 MB / 411.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0003572/0.5563, allocations: 248.8 kB / 0.5645 GB, free: 15.21 MB / 411.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.921e-05/0.5563, allocations: 8 kB / 0.5645 GB, free: 15.21 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.193e-05/0.5564, allocations: 8.578 kB / 0.5646 GB, free: 15.2 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.087e-05/0.5564, allocations: 8 kB / 0.5646 GB, free: 15.19 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002511/0.5566, allocations: 71.84 kB / 0.5646 GB, free: 15.12 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.244e-05/0.5567, allocations: 15.92 kB / 0.5646 GB, free: 15.11 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001595/0.5568, allocations: 11.91 kB / 0.5647 GB, free: 15.09 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.286e-05/0.5569, allocations: 16 kB / 0.5647 GB, free: 15.08 MB / 411.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 () * 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.834e-05/0.557, allocations: 112.9 kB / 0.5648 GB, free: 14.96 MB / 411.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002176/0.5572, allocations: 137.2 kB / 0.5649 GB, free: 14.82 MB / 411.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.799e-05/0.5573, allocations: 43.47 kB / 0.565 GB, free: 14.78 MB / 411.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002598/0.5575, allocations: 152.8 kB / 0.5651 GB, free: 14.62 MB / 411.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.5576, allocations: 4 kB / 0.5651 GB, free: 14.62 MB / 411.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/0.5576, allocations: 256 / 0.5651 GB, free: 14.62 MB / 411.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.044e-06/0.5576, allocations: 4 kB / 0.5651 GB, free: 14.61 MB / 411.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000628/0.5582, allocations: 483.6 kB / 0.5656 GB, free: 14.09 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.5582, allocations: 0 / 0.5656 GB, free: 14.09 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001805/0.5584, allocations: 35.92 kB / 0.5656 GB, free: 14.06 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.386e-06/0.5584, allocations: 0 / 0.5656 GB, free: 14.06 MB / 411.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.292e-05/0.5585, allocations: 8.031 kB / 0.5656 GB, free: 14.05 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.061e-06/0.5585, allocations: 3.984 kB / 0.5656 GB, free: 14.05 MB / 411.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.879e-06/0.5585, allocations: 4.469 kB / 0.5656 GB, free: 14.04 MB / 411.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004166/0.5589, allocations: 411.2 kB / 0.566 GB, free: 13.6 MB / 411.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.987e-05/0.559, allocations: 116.6 kB / 0.5661 GB, free: 13.47 MB / 411.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.151e-05/0.559, allocations: 0 / 0.5661 GB, free: 13.47 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001566/0.5592, allocations: 0 / 0.5661 GB, free: 13.47 MB / 411.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.257e-05/0.5592, allocations: 15.94 kB / 0.5661 GB, free: 13.45 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.207e-05/0.5593, allocations: 8 kB / 0.5661 GB, free: 13.45 MB / 411.1 MB Notification: Performance of sorting global known variables: time 0.0001946/0.5595, allocations: 219 kB / 0.5664 GB, free: 13.23 MB / 411.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5595, allocations: 0 / 0.5664 GB, free: 13.23 MB / 411.1 MB Notification: Performance of remove unused functions: time 0.0003923/0.5599, allocations: 68 kB / 0.5664 GB, free: 13.17 MB / 411.1 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.000726/0.5606, allocations: 1.161 MB / 0.5676 GB, free: 11.96 MB / 411.1 MB Notification: Performance of simCode: created initialization part: time 0.000241/0.5608, allocations: 131.8 kB / 0.5677 GB, free: 11.84 MB / 411.1 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.5609, allocations: 0 / 0.5677 GB, free: 11.84 MB / 411.1 MB Notification: Performance of simCode: created simulation system equations: time 8.111e-05/0.5609, allocations: 57.27 kB / 0.5677 GB, free: 11.78 MB / 411.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005543/0.5615, allocations: 86.33 kB / 0.5678 GB, free: 11.7 MB / 411.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001455/0.563, allocations: 0.7293 MB / 0.5685 GB, free: 10.92 MB / 411.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004995/0.5635, allocations: 0.8464 MB / 0.5694 GB, free: 10.05 MB / 411.1 MB Notification: Performance of simCode: alias equations: time 0.0001869/0.5637, allocations: 47.25 kB / 0.5694 GB, free: 10 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001839/0.5639, allocations: 151.4 kB / 0.5695 GB, free: 9.855 MB / 411.1 MB Notification: Performance of SimCode: time 4.21e-07/0.5639, allocations: 0 / 0.5695 GB, free: 9.855 MB / 411.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02756/0.5914, allocations: 5.921 MB / 0.5753 GB, free: 3.945 MB / 411.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001896/0.5917, allocations: 132.6 kB / 0.5755 GB, free: 3.758 MB / 411.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.24/2.831, allocations: 3.938 kB / 0.5755 GB, free: 3.754 MB / 411.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) 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