Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.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.HydroPlantTest2,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest2",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001166/0.001166, allocations: 174.9 kB / 8.131 MB, free: 0.8633 MB / 6.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.52/1.52, allocations: 205.2 MB / 213.7 MB, free: 8.48 MB / 178.8 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: 91.75 kB / 261.7 MB, free: 5.105 MB / 210.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2331/0.2331, allocations: 37.97 MB / 347.7 MB, free: 0.832 MB / 290.8 MB Notification: Performance of FrontEnd - loaded program: time 0.2785/0.5116, allocations: 62.43 MB / 410.1 MB, free: 74.33 MB / 322.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1142/0.6259, allocations: 56.31 MB / 466.4 MB, free: 18 MB / 322.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4009/1.027, allocations: 103.2 MB / 0.5562 GB, free: 9.23 MB / 370.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003051/1.027, allocations: 87.81 kB / 0.5563 GB, free: 9.184 MB / 370.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.06676/1.094, allocations: 25.59 MB / 0.5813 GB, free: 4.094 MB / 386.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.967e-05/1.094, allocations: 12 kB / 0.5813 GB, free: 4.082 MB / 386.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001429/1.095, allocations: 194.9 kB / 0.5815 GB, free: 3.891 MB / 386.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001121/1.097, allocations: 0.5358 MB / 0.582 GB, free: 3.402 MB / 386.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.641e-05/1.097, allocations: 23.98 kB / 0.5821 GB, free: 3.379 MB / 386.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.95e-05/1.097, allocations: 32 kB / 0.5821 GB, free: 3.348 MB / 386.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009786/1.098, allocations: 0.5128 MB / 0.5826 GB, free: 3.023 MB / 386.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001079/1.099, allocations: 0.66 MB / 0.5832 GB, free: 2.5 MB / 386.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.587e-05/1.099, allocations: 3.906 kB / 0.5832 GB, free: 2.496 MB / 386.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.504e-05/1.099, allocations: 4 kB / 0.5832 GB, free: 2.492 MB / 386.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.4e-05/1.099, allocations: 39.97 kB / 0.5833 GB, free: 2.457 MB / 386.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004063/1.103, allocations: 2.832 MB / 0.586 GB, free: 80 kB / 386.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008958/1.104, allocations: 400.7 kB / 0.5864 GB, free: 15.8 MB / 402.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005263/1.105, allocations: 319.2 kB / 0.5867 GB, free: 15.59 MB / 402.8 MB Notification: Performance of preOpt evalFunc (simulation): time 6.416e-05/1.105, allocations: 4.438 kB / 0.5867 GB, free: 15.59 MB / 402.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005599/1.105, allocations: 363.3 kB / 0.5871 GB, free: 15.32 MB / 402.8 MB Notification: Performance of pre-optimization done (n=56): time 3.246e-06/1.105, allocations: 0 / 0.5871 GB, free: 15.32 MB / 402.8 MB Notification: Performance of matching and sorting (n=58): time 0.002956/1.108, allocations: 1.486 MB / 0.5885 GB, free: 14.1 MB / 402.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.134e-05/1.108, allocations: 107.3 kB / 0.5886 GB, free: 13.97 MB / 402.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004524/1.109, allocations: 344.3 kB / 0.589 GB, free: 13.7 MB / 402.8 MB Notification: Performance of collectPreVariables (initialization): time 5.115e-05/1.109, allocations: 33.72 kB / 0.589 GB, free: 13.66 MB / 402.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002069/1.109, allocations: 253.3 kB / 0.5892 GB, free: 13.44 MB / 402.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001774/1.109, allocations: 189.4 kB / 0.5894 GB, free: 13.28 MB / 402.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.049e-05/1.109, allocations: 0 / 0.5894 GB, free: 13.28 MB / 402.8 MB Notification: Performance of setup shared object (initialization): time 0.0001788/1.109, allocations: 362.3 kB / 0.5898 GB, free: 12.94 MB / 402.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00036/1.11, allocations: 231.8 kB / 0.59 GB, free: 12.8 MB / 402.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004637/1.11, allocations: 348.8 kB / 0.5903 GB, free: 12.52 MB / 402.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004399/1.111, allocations: 275.5 kB / 0.5906 GB, free: 12.34 MB / 402.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.142e-06/1.111, allocations: 4 kB / 0.5906 GB, free: 12.34 MB / 402.8 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001654/1.112, allocations: 0.8331 MB / 0.5914 GB, free: 11.7 MB / 402.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006059/1.113, allocations: 1.13 MB / 0.5925 GB, free: 10.5 MB / 402.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.578e-06/1.113, allocations: 4 kB / 0.5925 GB, free: 10.5 MB / 402.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006743/1.114, allocations: 190.3 kB / 0.5927 GB, free: 10.35 MB / 402.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005658/1.114, allocations: 119.2 kB / 0.5928 GB, free: 10.24 MB / 402.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002609/1.117, allocations: 2.197 MB / 0.5949 GB, free: 8.074 MB / 402.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006374/1.118, allocations: 56 kB / 0.595 GB, free: 8.02 MB / 402.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.482e-05/1.118, allocations: 19.12 kB / 0.595 GB, free: 8.004 MB / 402.8 MB Notification: Performance of prepare postOptimizeDAE: time 8.827e-06/1.118, allocations: 4 kB / 0.595 GB, free: 8 MB / 402.8 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001392/1.119, allocations: 0.696 MB / 0.5957 GB, free: 7.496 MB / 402.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/1.119, allocations: 0 / 0.5957 GB, free: 7.496 MB / 402.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005309/1.12, allocations: 176.7 kB / 0.5959 GB, free: 7.355 MB / 402.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005658/1.12, allocations: 123.1 kB / 0.596 GB, free: 7.238 MB / 402.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003981/1.124, allocations: 3.467 MB / 0.5994 GB, free: 3.684 MB / 402.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006594/1.125, allocations: 48.02 kB / 0.5994 GB, free: 3.637 MB / 402.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.103e-05/1.125, allocations: 23.98 kB / 0.5994 GB, free: 3.613 MB / 402.8 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 hydroPlant.add.y:VARIABLE() "Connector of Real output signal" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 7 (system.initime,$whenCondition1,$PRE.secondary.T_start,secondary.T_start,$PRE.secondary.count,secondary.count,hydroPlant.reservoirLevel.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (59): * Single equations (assignments): 56 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {2 12} Notification: Performance of prepare postOptimizeDAE: time 0.0002569/1.125, allocations: 128.8 kB / 0.5996 GB, free: 3.48 MB / 402.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.973e-05/1.125, allocations: 59.25 kB / 0.5996 GB, free: 3.422 MB / 402.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001322/1.127, allocations: 0.687 MB / 0.6003 GB, free: 2.719 MB / 402.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.676e-06/1.127, allocations: 8 kB / 0.6003 GB, free: 2.711 MB / 402.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/1.127, allocations: 4 kB / 0.6003 GB, free: 2.707 MB / 402.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.585e-05/1.127, allocations: 11.88 kB / 0.6003 GB, free: 2.695 MB / 402.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003287/1.13, allocations: 1.919 MB / 0.6022 GB, free: 0.6055 MB / 402.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.11e-05/1.13, allocations: 4 kB / 0.6022 GB, free: 0.6016 MB / 402.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007463/1.131, allocations: 143.9 kB / 0.6023 GB, free: 472 kB / 402.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003085/1.131, allocations: 61.67 kB / 0.6024 GB, free: 404 kB / 402.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.58e-05/1.131, allocations: 12 kB / 0.6024 GB, free: 392 kB / 402.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002966/1.134, allocations: 2.567 MB / 0.6049 GB, free: 13.58 MB / 418.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.993e-05/1.134, allocations: 11.94 kB / 0.6049 GB, free: 13.57 MB / 418.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002077/1.136, allocations: 1.411 MB / 0.6063 GB, free: 11.98 MB / 418.8 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002498/1.139, allocations: 2.154 MB / 0.6084 GB, free: 9.641 MB / 418.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003335/1.139, allocations: 188.4 kB / 0.6086 GB, free: 9.438 MB / 418.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.859e-05/1.139, allocations: 15.92 kB / 0.6086 GB, free: 9.422 MB / 418.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005731/1.14, allocations: 51.95 kB / 0.6086 GB, free: 9.371 MB / 418.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001498/1.14, allocations: 60.2 kB / 0.6087 GB, free: 9.312 MB / 418.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.815e-05/1.14, allocations: 20 kB / 0.6087 GB, free: 9.293 MB / 418.8 MB Notification: Performance of sort global known variables: time 0.0004264/1.14, allocations: 271.2 kB / 0.609 GB, free: 9.031 MB / 418.8 MB Notification: Performance of remove unused functions: time 0.002207/1.143, allocations: 244 kB / 0.6092 GB, free: 8.789 MB / 418.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * 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,secondary.T_start,secondary.count) * Number of discrete states: 1 (secondary.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (62): * Single equations (assignments): 57 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003294/1.143, allocations: 131 kB / 0.6093 GB, free: 8.652 MB / 418.8 MB Notification: Performance of simCode: created initialization part: time 0.003385/1.146, allocations: 1.433 MB / 0.6107 GB, free: 7.18 MB / 418.8 MB Notification: Performance of simCode: created event and clocks part: time 1.138e-05/1.146, allocations: 4 kB / 0.6107 GB, free: 7.176 MB / 418.8 MB Notification: Performance of simCode: created simulation system equations: time 0.00107/1.148, allocations: 0.5556 MB / 0.6113 GB, free: 6.598 MB / 418.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009568/1.148, allocations: 91.72 kB / 0.6114 GB, free: 6.508 MB / 418.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003097/1.152, allocations: 1.26 MB / 0.6126 GB, free: 5.172 MB / 418.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001144/1.153, allocations: 1.017 MB / 0.6136 GB, free: 4.133 MB / 418.8 MB Notification: Performance of SimCode: time 3.867e-06/1.153, allocations: 0 / 0.6136 GB, free: 4.133 MB / 418.8 MB (rm -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest2_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest2.fmu > PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2_res.mat does not exist to compare? outputFormat=mat