Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.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.WindFarmGridTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_WindFarmGridTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_WindFarmGridTest",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.001416/0.001416, allocations: 176.2 kB / 8.348 MB, free: 0.7266 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.883/1.883, allocations: 205.3 MB / 214.1 MB, free: 14.13 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.0008507/0.0008505, allocations: 83.94 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.1803/0.1803, allocations: 37.99 MB / 348 MB, free: 7.77 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.55e-05/2.532e-05, allocations: 4 kB / 410.7 MB, free: 46.85 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1466/0.1466, allocations: 56.32 MB / 467 MB, free: 6.465 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4096/0.5563, allocations: 95.66 MB / 0.5495 GB, free: 15.1 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.001626/0.558, allocations: 0.5777 MB / 0.55 GB, free: 14.52 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.04378/0.6018, allocations: 16.69 MB / 0.5663 GB, free: 13.69 MB / 411.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.6018, allocations: 0 / 0.5663 GB, free: 13.69 MB / 411.1 MB Notification: Performance of Transformations before backend: time 3.854e-05/0.6019, allocations: 8 kB / 0.5663 GB, free: 13.68 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: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.001533/0.6034, allocations: 0.6859 MB / 0.567 GB, free: 12.94 MB / 411.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.35e-05/0.6035, allocations: 8.031 kB / 0.567 GB, free: 12.93 MB / 411.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001067/0.6046, allocations: 115.4 kB / 0.5671 GB, free: 12.82 MB / 411.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007638/0.6054, allocations: 390.5 kB / 0.5675 GB, free: 12.4 MB / 411.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.924e-05/0.6054, allocations: 15.92 kB / 0.5675 GB, free: 12.39 MB / 411.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.076e-05/0.6055, allocations: 12 kB / 0.5675 GB, free: 12.38 MB / 411.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006769/0.6062, allocations: 408.7 kB / 0.5679 GB, free: 11.98 MB / 411.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005825/0.6067, allocations: 386 kB / 0.5683 GB, free: 11.57 MB / 411.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.179e-05/0.6068, allocations: 4 kB / 0.5683 GB, free: 11.56 MB / 411.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.616e-05/0.6068, allocations: 3.953 kB / 0.5683 GB, free: 11.56 MB / 411.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.571e-05/0.6069, allocations: 16.42 kB / 0.5683 GB, free: 11.54 MB / 411.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00225/0.6091, allocations: 1.67 MB / 0.5699 GB, free: 9.781 MB / 411.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006337/0.6098, allocations: 349.5 kB / 0.5703 GB, free: 9.422 MB / 411.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001769/0.61, allocations: 120 kB / 0.5704 GB, free: 9.301 MB / 411.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.666e-05/0.61, allocations: 8.219 kB / 0.5704 GB, free: 9.293 MB / 411.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003762/0.6104, allocations: 263.2 kB / 0.5706 GB, free: 8.996 MB / 411.1 MB Notification: Performance of pre-optimization done (n=31): time 2.454e-06/0.6104, allocations: 0 / 0.5706 GB, free: 8.996 MB / 411.1 MB Notification: Performance of matching and sorting (n=31): time 0.0006479/0.611, allocations: 345.9 kB / 0.571 GB, free: 8.652 MB / 411.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001512/0.6112, allocations: 294.7 kB / 0.5713 GB, free: 8.297 MB / 411.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000355/0.6116, allocations: 309.1 kB / 0.5716 GB, free: 7.988 MB / 411.1 MB Notification: Performance of collectPreVariables (initialization): time 4.518e-05/0.6116, allocations: 29.7 kB / 0.5716 GB, free: 7.953 MB / 411.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001614/0.6118, allocations: 192.1 kB / 0.5718 GB, free: 7.762 MB / 411.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.018e-05/0.6119, allocations: 102.6 kB / 0.5719 GB, free: 7.66 MB / 411.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.711e-05/0.6119, allocations: 0 / 0.5719 GB, free: 7.66 MB / 411.1 MB Notification: Performance of setup shared object (initialization): time 0.0001418/0.6121, allocations: 350.8 kB / 0.5722 GB, free: 7.309 MB / 411.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001802/0.6122, allocations: 108 kB / 0.5723 GB, free: 7.203 MB / 411.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002561/0.6125, allocations: 245.1 kB / 0.5725 GB, free: 6.902 MB / 411.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002278/0.6127, allocations: 143.9 kB / 0.5727 GB, free: 6.762 MB / 411.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.532e-06/0.6128, allocations: 3.953 kB / 0.5727 GB, free: 6.758 MB / 411.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0006219/0.6134, allocations: 420.8 kB / 0.5731 GB, free: 6.34 MB / 411.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.16e-05/0.6134, allocations: 37.64 kB / 0.5731 GB, free: 6.297 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.198e-06/0.6134, allocations: 4 kB / 0.5731 GB, free: 6.293 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.933e-05/0.6135, allocations: 8 kB / 0.5731 GB, free: 6.285 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003688/0.6138, allocations: 100.4 kB / 0.5732 GB, free: 6.188 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.023e-05/0.6139, allocations: 7.938 kB / 0.5732 GB, free: 6.18 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002918/0.6142, allocations: 47.66 kB / 0.5733 GB, free: 6.133 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.608e-05/0.6142, allocations: 20 kB / 0.5733 GB, free: 6.113 MB / 411.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition2,$PRE.windFarm.wind.nextTimeEvent,$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,system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (43): * Single equations (assignments): 42 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001144/0.6143, allocations: 124.8 kB / 0.5734 GB, free: 5.984 MB / 411.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0005114/0.6148, allocations: 349.2 kB / 0.5737 GB, free: 5.637 MB / 411.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.879e-05/0.6149, allocations: 39.61 kB / 0.5738 GB, free: 5.598 MB / 411.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005984/0.6155, allocations: 380.2 kB / 0.5741 GB, free: 5.215 MB / 411.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.111e-06/0.6155, allocations: 4.25 kB / 0.5741 GB, free: 5.211 MB / 411.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.502e-06/0.6156, allocations: 8 kB / 0.5742 GB, free: 5.203 MB / 411.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.931e-06/0.6156, allocations: 0 / 0.5742 GB, free: 5.203 MB / 411.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009057/0.6165, allocations: 1.035 MB / 0.5752 GB, free: 4.102 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.845e-06/0.6165, allocations: 4.031 kB / 0.5752 GB, free: 4.098 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000304/0.6168, allocations: 79.89 kB / 0.5752 GB, free: 4.02 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.565e-06/0.6168, allocations: 4 kB / 0.5753 GB, free: 4.016 MB / 411.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.611e-05/0.6168, allocations: 8 kB / 0.5753 GB, free: 4.008 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.328e-06/0.6169, allocations: 3.984 kB / 0.5753 GB, free: 4.004 MB / 411.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.557e-06/0.6169, allocations: 7.938 kB / 0.5753 GB, free: 3.996 MB / 411.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006322/0.6175, allocations: 0.5363 MB / 0.5758 GB, free: 3.363 MB / 411.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.779e-05/0.6176, allocations: 120.6 kB / 0.5759 GB, free: 3.227 MB / 411.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.966e-05/0.6177, allocations: 19.94 kB / 0.5759 GB, free: 3.207 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002368/0.6179, allocations: 27.97 kB / 0.576 GB, free: 3.18 MB / 411.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001004/0.618, allocations: 43.89 kB / 0.576 GB, free: 3.137 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.158e-05/0.6181, allocations: 19.98 kB / 0.576 GB, free: 3.117 MB / 411.1 MB Notification: Performance of sorting global known variables: time 0.0002428/0.6183, allocations: 236.6 kB / 0.5762 GB, free: 2.887 MB / 411.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.6183, allocations: 7.938 kB / 0.5762 GB, free: 2.879 MB / 411.1 MB Notification: Performance of remove unused functions: time 0.0004561/0.6188, allocations: 91.84 kB / 0.5763 GB, free: 2.789 MB / 411.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 7 (system.initime,$whenCondition2,$whenCondition1,windFarm.wind.nextTimeEvent,windFarm.wind.nextTimeEventScaled,windFarm.disturbance.T_start,windFarm.disturbance.count) * Number of discrete states: 3 (windFarm.disturbance.count,windFarm.wind.nextTimeEvent,windFarm.wind.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.00178/0.6206, allocations: 1.919 MB / 0.5782 GB, free: 0.8125 MB / 411.1 MB Notification: Performance of simCode: created initialization part: time 0.0005404/0.6211, allocations: 359.3 kB / 0.5786 GB, free: 460 kB / 411.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.6212, allocations: 0 / 0.5786 GB, free: 460 kB / 411.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002841/0.6214, allocations: 201.6 kB / 0.5787 GB, free: 260 kB / 411.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003993/0.6219, allocations: 57.55 kB / 0.5788 GB, free: 204 kB / 411.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001277/0.6231, allocations: 0.6271 MB / 0.5794 GB, free: 15.51 MB / 427.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003959/0.6236, allocations: 0.8279 MB / 0.5802 GB, free: 14.66 MB / 427.1 MB Notification: Performance of simCode: alias equations: time 0.0002718/0.6238, allocations: 83.2 kB / 0.5803 GB, free: 14.58 MB / 427.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002078/0.6241, allocations: 123.4 kB / 0.5804 GB, free: 14.46 MB / 427.1 MB Notification: Performance of SimCode: time 4.61e-07/0.6241, allocations: 4 kB / 0.5804 GB, free: 14.45 MB / 427.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03078/0.6548, allocations: 7.422 MB / 0.5877 GB, free: 7.02 MB / 427.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002146/0.6551, allocations: 194.9 kB / 0.5879 GB, free: 6.812 MB / 427.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.145/2.801, allocations: 0 / 0.5879 GB, free: 6.812 MB / 427.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_WindFarmGridTest_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_WindFarmGridTest.fmu > PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest_res.mat does not exist to compare? outputFormat=mat