Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.PowerWorld.PowerWorld.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.PowerWorld,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_PowerWorld_PowerWorld",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.PowerWorld,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_PowerWorld_PowerWorld",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.001501/0.0015, allocations: 175.6 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.673/1.673, allocations: 205.2 MB / 219.4 MB, free: 14.27 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.0008758/0.0008758, allocations: 82.72 kB / 267.5 MB, free: 14.1 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1754/0.1754, allocations: 37.97 MB / 353.5 MB, free: 1.758 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 3.192e-05/3.194e-05, allocations: 0 / 417.8 MB, free: 29.04 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1222/0.1222, allocations: 56.32 MB / 474.1 MB, free: 4.715 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4542/0.5765, allocations: 120.1 MB / 0.5804 GB, free: 15.93 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.001719/0.5782, allocations: 0.6805 MB / 0.581 GB, free: 15.63 MB / 394.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/Generic.mo:465:11-465:52:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.potentialRoot(terminal.theta);. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/Generic.mo:468:7-475:13:writable] Warning: Returning false from overconstrained operator applied to array components having size zero: Connections.isRoot({}). Notification: Performance of FrontEnd - DAE generated: time 0.2501/0.8284, allocations: 102.6 MB / 0.6812 GB, free: 14.68 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.954e-06/0.8284, allocations: 0 / 0.6812 GB, free: 14.68 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001977/0.8287, allocations: 59.94 kB / 0.6813 GB, free: 14.62 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 512 * Number of variables: 512 Notification: Performance of Generate backend data structure: time 0.006366/0.835, allocations: 2.569 MB / 0.6838 GB, free: 11.97 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.05e-05/0.8351, allocations: 16.03 kB / 0.6838 GB, free: 11.96 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006182/0.8357, allocations: 279 kB / 0.6841 GB, free: 11.68 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004696/0.8404, allocations: 0.6716 MB / 0.6847 GB, free: 11 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00375/0.8442, allocations: 1.571 MB / 0.6863 GB, free: 9.379 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001451/0.8444, allocations: 155.8 kB / 0.6864 GB, free: 9.227 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000457/0.8448, allocations: 199.9 kB / 0.6866 GB, free: 9.031 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004885/0.8497, allocations: 2.61 MB / 0.6892 GB, free: 6.309 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.332e-05/0.8498, allocations: 3.906 kB / 0.6892 GB, free: 6.305 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002275/0.85, allocations: 83.98 kB / 0.6892 GB, free: 6.223 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002768/0.8503, allocations: 135.7 kB / 0.6894 GB, free: 6.09 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004751/0.8551, allocations: 2.716 MB / 0.692 GB, free: 3.371 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3262/1.181, allocations: 9.487 MB / 0.7013 GB, free: 98.41 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005144/1.187, allocations: 3.034 MB / 0.7043 GB, free: 97.86 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001789/1.188, allocations: 1.091 MB / 0.7053 GB, free: 97.84 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001358/1.188, allocations: 39.19 kB / 0.7054 GB, free: 97.83 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0023/1.191, allocations: 1.287 MB / 0.7066 GB, free: 97.74 MB / 490.7 MB Notification: Performance of pre-optimization done (n=218): time 4.688e-06/1.191, allocations: 0 / 0.7066 GB, free: 97.74 MB / 490.7 MB Notification: Performance of matching and sorting (n=229): time 0.0151/1.206, allocations: 7.345 MB / 0.7138 GB, free: 96.48 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001322/1.206, allocations: 258.7 kB / 0.714 GB, free: 96.2 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002144/1.208, allocations: 1.446 MB / 0.7155 GB, free: 96.02 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001977/1.208, allocations: 75.33 kB / 0.7155 GB, free: 95.99 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007592/1.209, allocations: 0.9553 MB / 0.7165 GB, free: 95.75 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006418/1.21, allocations: 0.7664 MB / 0.7172 GB, free: 95.36 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001218/1.21, allocations: 45.91 kB / 0.7172 GB, free: 95.36 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001284/1.21, allocations: 393.2 kB / 0.7176 GB, free: 95.05 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001408/1.212, allocations: 0.8951 MB / 0.7185 GB, free: 95.05 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001611/1.213, allocations: 1.258 MB / 0.7197 GB, free: 94.71 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001565/1.215, allocations: 1.116 MB / 0.7208 GB, free: 94.62 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.855e-06/1.215, allocations: 7.156 kB / 0.7208 GB, free: 94.62 MB / 490.7 MB Notification: Performance of matching and sorting (n=279) (initialization): time 0.005145/1.22, allocations: 3.099 MB / 0.7238 GB, free: 94.32 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006551/1.221, allocations: 3.071 MB / 0.7268 GB, free: 91.14 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.404e-05/1.221, allocations: 6.906 kB / 0.7269 GB, free: 91.14 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001419/1.222, allocations: 0.5486 MB / 0.7274 GB, free: 91.12 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001859/1.224, allocations: 487.1 kB / 0.7279 GB, free: 91.12 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006262/1.23, allocations: 5.692 MB / 0.7334 GB, free: 88.33 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002157/1.232, allocations: 190.5 kB / 0.7336 GB, free: 88.33 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001824/1.233, allocations: 89.39 kB / 0.7337 GB, free: 88.33 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.054e-05/1.233, allocations: 4.969 kB / 0.7337 GB, free: 88.33 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004598/1.237, allocations: 2.886 MB / 0.7365 GB, free: 88.19 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.442e-05/1.237, allocations: 7.219 kB / 0.7365 GB, free: 88.19 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00132/1.239, allocations: 0.5467 MB / 0.737 GB, free: 88.17 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001705/1.24, allocations: 473.8 kB / 0.7375 GB, free: 88.17 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005724/1.246, allocations: 5.694 MB / 0.7431 GB, free: 85.35 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002005/1.248, allocations: 173.2 kB / 0.7432 GB, free: 85.35 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001663/1.248, allocations: 84.69 kB / 0.7433 GB, free: 85.35 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 31 ($whenCondition5,$PRE.windFarm.wind.nextTimeEvent,$whenCondition3,$PRE.city.data.nextTimeEvent,$whenCondition2,$PRE.dispatcher.data.nextTimeEvent,system.initime,$whenCondition6,$whenCondition4,$whenCondition1,windFarm.wind.nextTimeEvent,$PRE.windFarm.wind.nextTimeEventScaled,windFarm.wind.nextTimeEventScaled,$PRE.windFarm.disturbance.T_start,windFarm.disturbance.T_start,$PRE.windFarm.disturbance.count,windFarm.disturbance.count,city.data.nextTimeEvent,$PRE.city.data.nextTimeEventScaled,city.data.nextTimeEventScaled,dispatcher.data.nextTimeEvent,$PRE.dispatcher.data.nextTimeEventScaled,dispatcher.data.nextTimeEventScaled,$PRE.dispatcher.hydroDaily.T_start,dispatcher.hydroDaily.T_start,$PRE.dispatcher.hydroDaily.count,dispatcher.hydroDaily.count,hydroPlant.reservoirLevel.local_reset,powerPlant.throttleCosts.local_reset,powerPlant.hotwellLevel.local_reset,dispatcher.secondaryControl.I.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (230): * Single equations (assignments): 226 * Array equations: 0 * Algorithm blocks: 2 * 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: 0 * Non-linear torn systems: 2 {5 33,1 10} Notification: Performance of prepare postOptimizeDAE: time 0.0005615/1.249, allocations: 245.1 kB / 0.7435 GB, free: 85.24 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004256/1.249, allocations: 228.8 kB / 0.7438 GB, free: 85.12 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005427/1.255, allocations: 3.169 MB / 0.7468 GB, free: 84.91 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.704e-05/1.255, allocations: 25.28 kB / 0.7469 GB, free: 84.91 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.542e-06/1.255, allocations: 0 / 0.7469 GB, free: 84.91 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.55e-05/1.255, allocations: 21.77 kB / 0.7469 GB, free: 84.91 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009929/1.265, allocations: 6.13 MB / 0.7529 GB, free: 83.64 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.074e-05/1.265, allocations: 10.73 kB / 0.7529 GB, free: 83.64 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00167/1.266, allocations: 443 kB / 0.7533 GB, free: 83.62 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001201/1.268, allocations: 463.5 kB / 0.7538 GB, free: 83.51 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001661/1.268, allocations: 66.34 kB / 0.7538 GB, free: 83.48 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006578/1.274, allocations: 6.101 MB / 0.7598 GB, free: 79.3 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.546e-06/1.274, allocations: 3.812 kB / 0.7598 GB, free: 79.3 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007228/1.282, allocations: 4.646 MB / 0.7643 GB, free: 77.12 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001456/1.283, allocations: 0.5646 MB / 0.7649 GB, free: 76.76 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005413/1.284, allocations: 67.72 kB / 0.7649 GB, free: 76.71 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001536/1.285, allocations: 174.9 kB / 0.7651 GB, free: 76.68 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000444/1.286, allocations: 219.7 kB / 0.7653 GB, free: 76.64 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001501/1.286, allocations: 82.44 kB / 0.7654 GB, free: 76.62 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.001515/1.287, allocations: 1.102 MB / 0.7665 GB, free: 76.18 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.7e-07/1.287, allocations: 0 / 0.7665 GB, free: 76.18 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.003392/1.291, allocations: 1.009 MB / 0.7674 GB, free: 76.06 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 13 (dispatcher.secondaryControl.I.y,powerPlant.evaporator.y,powerPlant.superheater1.y,powerPlant.superheater2.y,powerPlant.transferFunction.x_scaled[1],powerPlant.hotwellLevel.y,powerPlant.throttleDynamics.y,powerPlant.throttleCosts.y,hydroPlant.reservoirLevel.y,hydroPlant.rotor.phi,hydroPlant.rotor.w,hydroPlant.controlDynamics.x_scaled[1],system.theta) * Number of discrete variables: 17 (system.initime,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,windFarm.wind.nextTimeEvent,windFarm.wind.nextTimeEventScaled,windFarm.disturbance.T_start,windFarm.disturbance.count,city.data.nextTimeEvent,city.data.nextTimeEventScaled,dispatcher.data.nextTimeEvent,dispatcher.data.nextTimeEventScaled,dispatcher.hydroDaily.T_start,dispatcher.hydroDaily.count) * Number of discrete states: 8 (windFarm.wind.nextTimeEvent,windFarm.disturbance.count,city.data.nextTimeEvent,dispatcher.data.nextTimeEvent,dispatcher.hydroDaily.count,dispatcher.data.nextTimeEventScaled,city.data.nextTimeEventScaled,windFarm.wind.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (226): * Single equations (assignments): 213 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 11 * 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: 0 * Non-linear torn systems: 2 {6 30,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.007661/1.298, allocations: 6.252 MB / 0.7736 GB, free: 72.54 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.007592/1.306, allocations: 4.886 MB / 0.7783 GB, free: 70.27 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.054e-05/1.306, allocations: 0 / 0.7783 GB, free: 70.27 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002949/1.309, allocations: 1.842 MB / 0.7801 GB, free: 69.45 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002331/1.311, allocations: 389 kB / 0.7805 GB, free: 69.32 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009184/1.321, allocations: 4.764 MB / 0.7851 GB, free: 67.34 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001245/1.322, allocations: 1.832 MB / 0.7869 GB, free: 66.5 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.002411/1.324, allocations: 0.7825 MB / 0.7877 GB, free: 66.43 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001151/1.325, allocations: 1.002 MB / 0.7887 GB, free: 65.63 MB / 490.7 MB Notification: Performance of SimCode: time 1.583e-06/1.326, allocations: 0 / 0.7887 GB, free: 65.63 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1011/1.427, allocations: 58.88 MB / 0.8462 GB, free: 24.67 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000145/1.427, allocations: 222.9 kB / 0.8464 GB, free: 24.44 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.153/5.58, allocations: 4 kB / 0.8464 GB, free: 24.44 MB / 490.7 MB (rm -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.PowerWorld.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.PowerWorld.PowerWorld.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.PowerWorld.PowerWorld.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.PowerWorld.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.PowerWorld.PowerWorld_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_PowerWorld_PowerWorld_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_PowerWorld_PowerWorld.fmu > PowerSystems_latest_PowerSystems.Examples.PowerWorld.PowerWorld.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.PowerWorld.PowerWorld_res.mat does not exist to compare? outputFormat=mat