Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.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.PowerWorld.Test.HydroPlantTest1,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest1",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.001737/0.001737, allocations: 175.4 kB / 8.345 MB, free: 0.7305 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.914/1.914, 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.0009299/0.0009298, allocations: 91.38 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1873/0.1873, allocations: 37.98 MB / 348 MB, free: 7.766 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.661e-05/1.639e-05, allocations: 4 kB / 410.7 MB, free: 46.86 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1207/0.1207, allocations: 56.32 MB / 467 MB, free: 6.473 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4505/0.5712, allocations: 101.2 MB / 0.5549 GB, free: 9.531 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003308/0.5716, allocations: 85.17 kB / 0.555 GB, free: 9.449 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.05111/0.6227, allocations: 19.17 MB / 0.5737 GB, free: 6.141 MB / 411.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.6228, allocations: 0 / 0.5737 GB, free: 6.141 MB / 411.1 MB Notification: Performance of Transformations before backend: time 5.504e-05/0.6229, allocations: 16 kB / 0.5737 GB, free: 6.125 MB / 411.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 127 * Number of variables: 127 Notification: Performance of Generate backend data structure: time 0.00156/0.6244, allocations: 0.8656 MB / 0.5746 GB, free: 5.203 MB / 411.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.148e-05/0.6245, allocations: 12.03 kB / 0.5746 GB, free: 5.191 MB / 411.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009178/0.6254, allocations: 159 kB / 0.5747 GB, free: 5.035 MB / 411.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000876/0.6263, allocations: 0.5117 MB / 0.5752 GB, free: 4.484 MB / 411.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.777e-05/0.6263, allocations: 16 kB / 0.5752 GB, free: 4.469 MB / 411.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.415e-05/0.6264, allocations: 31.98 kB / 0.5753 GB, free: 4.438 MB / 411.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007541/0.6272, allocations: 406.5 kB / 0.5757 GB, free: 4.039 MB / 411.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009205/0.6281, allocations: 0.5459 MB / 0.5762 GB, free: 3.457 MB / 411.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.536e-05/0.6282, allocations: 7.938 kB / 0.5762 GB, free: 3.449 MB / 411.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.835e-05/0.6282, allocations: 3.953 kB / 0.5762 GB, free: 3.445 MB / 411.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.743e-05/0.6283, allocations: 33.3 kB / 0.5762 GB, free: 3.41 MB / 411.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003765/0.632, allocations: 2.68 MB / 0.5788 GB, free: 0.5977 MB / 411.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000924/0.633, allocations: 0.52 MB / 0.5794 GB, free: 44 kB / 411.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002643/0.6333, allocations: 158.9 kB / 0.5795 GB, free: 15.88 MB / 427.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.695e-05/0.6333, allocations: 4.328 kB / 0.5795 GB, free: 15.88 MB / 427.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004082/0.6337, allocations: 251 kB / 0.5797 GB, free: 15.61 MB / 427.1 MB Notification: Performance of pre-optimization done (n=42): time 3.697e-06/0.6337, allocations: 3.938 kB / 0.5798 GB, free: 15.61 MB / 427.1 MB Notification: Performance of matching and sorting (n=42): time 0.000745/0.6345, allocations: 379.7 kB / 0.5801 GB, free: 15.23 MB / 427.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.876e-05/0.6346, allocations: 148.4 kB / 0.5803 GB, free: 15.05 MB / 427.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003803/0.635, allocations: 353.2 kB / 0.5806 GB, free: 14.7 MB / 427.1 MB Notification: Performance of collectPreVariables (initialization): time 3.481e-05/0.635, allocations: 25.7 kB / 0.5806 GB, free: 14.67 MB / 427.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002195/0.6352, allocations: 304.3 kB / 0.5809 GB, free: 14.37 MB / 427.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001138/0.6353, allocations: 142 kB / 0.581 GB, free: 14.23 MB / 427.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.316e-05/0.6354, allocations: 0 / 0.581 GB, free: 14.23 MB / 427.1 MB Notification: Performance of setup shared object (initialization): time 0.0001496/0.6355, allocations: 358.8 kB / 0.5814 GB, free: 13.87 MB / 427.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002247/0.6358, allocations: 141.1 kB / 0.5815 GB, free: 13.73 MB / 427.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003131/0.6361, allocations: 250.1 kB / 0.5818 GB, free: 13.43 MB / 427.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002644/0.6364, allocations: 165.2 kB / 0.5819 GB, free: 13.27 MB / 427.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.682e-06/0.6364, allocations: 8 kB / 0.5819 GB, free: 13.26 MB / 427.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001104/0.6375, allocations: 0.5776 MB / 0.5825 GB, free: 12.68 MB / 427.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005913/0.6381, allocations: 1.34 MB / 0.5838 GB, free: 11.23 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.2e-05/0.6381, allocations: 7.984 kB / 0.5838 GB, free: 11.22 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004787/0.6386, allocations: 138.2 kB / 0.5839 GB, free: 11.08 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003945/0.639, allocations: 91.83 kB / 0.584 GB, free: 10.99 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000782/0.6398, allocations: 0.7748 MB / 0.5848 GB, free: 10.19 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004939/0.6403, allocations: 75.59 kB / 0.5849 GB, free: 10.12 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.263e-05/0.6404, allocations: 20 kB / 0.5849 GB, free: 10.1 MB / 427.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.317e-05/0.6404, allocations: 4 kB / 0.5849 GB, free: 10.09 MB / 427.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009115/0.6413, allocations: 476 kB / 0.5853 GB, free: 9.625 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.887e-06/0.6413, allocations: 0 / 0.5853 GB, free: 9.625 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003361/0.6417, allocations: 124.3 kB / 0.5854 GB, free: 9.504 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003843/0.6421, allocations: 103.8 kB / 0.5855 GB, free: 9.402 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002601/0.6447, allocations: 2.181 MB / 0.5877 GB, free: 7.109 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000457/0.6451, allocations: 63.7 kB / 0.5877 GB, free: 7.047 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.476e-05/0.6452, allocations: 16 kB / 0.5878 GB, free: 7.031 MB / 427.1 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: hydroPlant.primaryControl.addFF.y:VARIABLE() "Connector of Real output signal" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 7 (system.initime,$whenCondition1,$PRE.trapezoid.T_start,trapezoid.T_start,$PRE.trapezoid.count,trapezoid.count,hydroPlant.reservoirLevel.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 13} Notification: Performance of prepare postOptimizeDAE: time 0.0002268/0.6454, allocations: 122.7 kB / 0.5879 GB, free: 6.906 MB / 427.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0007832/0.6462, allocations: 385.9 kB / 0.5882 GB, free: 6.52 MB / 427.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.033e-05/0.6463, allocations: 51.34 kB / 0.5883 GB, free: 6.469 MB / 427.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007565/0.6471, allocations: 407.1 kB / 0.5887 GB, free: 6.059 MB / 427.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.25e-06/0.6471, allocations: 4 kB / 0.5887 GB, free: 6.055 MB / 427.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.975e-06/0.6471, allocations: 11.94 kB / 0.5887 GB, free: 6.043 MB / 427.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.743e-06/0.6471, allocations: 0 / 0.5887 GB, free: 6.043 MB / 427.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001365/0.6485, allocations: 0.9636 MB / 0.5896 GB, free: 5.031 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.641e-06/0.6485, allocations: 3.953 kB / 0.5896 GB, free: 5.027 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004552/0.649, allocations: 99.88 kB / 0.5897 GB, free: 4.93 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001024/0.6491, allocations: 24.84 kB / 0.5898 GB, free: 4.902 MB / 427.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.353e-05/0.6491, allocations: 12 kB / 0.5898 GB, free: 4.891 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009588/0.6501, allocations: 1.299 MB / 0.591 GB, free: 3.48 MB / 427.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.829e-06/0.6501, allocations: 3.938 kB / 0.591 GB, free: 3.477 MB / 427.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009753/0.6511, allocations: 0.7107 MB / 0.5917 GB, free: 2.73 MB / 427.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000173/0.6513, allocations: 164.5 kB / 0.5919 GB, free: 2.551 MB / 427.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.119e-05/0.6513, allocations: 7.922 kB / 0.5919 GB, free: 2.543 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000393/0.6517, allocations: 43.95 kB / 0.5919 GB, free: 2.5 MB / 427.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001095/0.6519, allocations: 43.62 kB / 0.592 GB, free: 2.457 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.927e-05/0.6519, allocations: 15.98 kB / 0.592 GB, free: 2.441 MB / 427.1 MB Notification: Performance of sorting global known variables: time 0.0003333/0.6522, allocations: 267 kB / 0.5922 GB, free: 2.184 MB / 427.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.6522, allocations: 0 / 0.5922 GB, free: 2.184 MB / 427.1 MB Notification: Performance of remove unused functions: time 0.0009737/0.6532, allocations: 247.2 kB / 0.5925 GB, free: 1.941 MB / 427.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (hydroPlant.reservoirLevel.y,hydroPlant.rotor.phi,hydroPlant.rotor.w,hydroPlant.controlDynamics.x_scaled[1]) * Number of discrete variables: 4 (system.initime,$whenCondition1,trapezoid.T_start,trapezoid.count) * Number of discrete states: 1 (trapezoid.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001494/0.6547, allocations: 1.4 MB / 0.5939 GB, free: 0.4961 MB / 427.1 MB Notification: Performance of simCode: created initialization part: time 0.00175/0.6565, allocations: 0.8634 MB / 0.5947 GB, free: 15.59 MB / 443.1 MB Notification: Performance of simCode: created event and clocks part: time 5.18e-06/0.6565, allocations: 0 / 0.5947 GB, free: 15.59 MB / 443.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004368/0.657, allocations: 290.7 kB / 0.595 GB, free: 15.3 MB / 443.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007061/0.6577, allocations: 98.16 kB / 0.5951 GB, free: 15.21 MB / 443.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002408/0.6601, allocations: 1.023 MB / 0.5961 GB, free: 14.14 MB / 443.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005933/0.6607, allocations: 0.9103 MB / 0.597 GB, free: 13.21 MB / 443.1 MB Notification: Performance of simCode: alias equations: time 0.0004603/0.6612, allocations: 128 kB / 0.5971 GB, free: 13.08 MB / 443.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002542/0.6614, allocations: 195.4 kB / 0.5973 GB, free: 12.89 MB / 443.1 MB Notification: Performance of SimCode: time 6.81e-07/0.6614, allocations: 0 / 0.5973 GB, free: 12.89 MB / 443.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04359/0.705, allocations: 11.59 MB / 0.6086 GB, free: 1.305 MB / 443.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003011/0.7054, allocations: 155.7 kB / 0.6087 GB, free: 1.105 MB / 443.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.288/2.994, allocations: 4 kB / 0.6087 GB, free: 1.102 MB / 443.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest1_fmu --startTime=0 --stopTime=900 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest1.fmu > PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1_res.mat does not exist to compare? outputFormat=mat