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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009139/0.0009137, allocations: 94.61 kB / 16.3 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001008/0.001008, allocations: 183.7 kB / 17.2 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.287/1.287, allocations: 223.2 MB / 241.1 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2987/0.2987, allocations: 38.06 MB / 330.3 MB, free: 14.2 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002853/0.0002853, allocations: 12 kB / 400.1 MB, free: 9.18 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.269/0.2693, allocations: 59.16 MB / 459.2 MB, free: 30.46 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1): time 0.005536/0.2749, allocations: 4.746 MB / 464 MB, free: 27.07 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003246/0.2782, allocations: 2.096 MB / 466.1 MB, free: 25.59 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005427/0.2788, allocations: 30.22 kB / 466.1 MB, free: 25.58 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004145/0.2792, allocations: 92.72 kB / 466.2 MB, free: 25.53 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007646/0.28, allocations: 315.1 kB / 466.5 MB, free: 25.33 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008276/0.2808, allocations: 316.8 kB / 466.8 MB, free: 25.17 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006822/0.2815, allocations: 0.5043 MB / 467.3 MB, free: 24.89 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008289/0.2823, allocations: 0.5435 MB / 467.9 MB, free: 24.55 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004062/0.2828, allocations: 267.6 kB / 468.1 MB, free: 24.43 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003433/0.2831, allocations: 248.9 kB / 468.4 MB, free: 24.32 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.874e-05/0.2832, allocations: 27.47 kB / 468.4 MB, free: 24.31 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003785/0.2836, allocations: 153.9 kB / 468.5 MB, free: 24.27 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001379/0.2837, allocations: 128 kB / 468.7 MB, free: 24.21 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000111/0.2838, allocations: 133.8 kB / 468.8 MB, free: 24.12 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007998/0.2846, allocations: 0.6737 MB / 469.5 MB, free: 23.95 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.045e-06/0.2847, allocations: 0 / 469.5 MB, free: 23.95 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.056e-06/0.2847, allocations: 1.672 kB / 469.5 MB, free: 23.95 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.786e-06/0.2847, allocations: 0 / 469.5 MB, free: 23.95 MB / 350.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.001722/0.2864, allocations: 0.9345 MB / 470.4 MB, free: 23.28 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.636e-05/0.2865, allocations: 8.938 kB / 470.4 MB, free: 23.28 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001069/0.2866, allocations: 88.11 kB / 470.5 MB, free: 23.21 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008743/0.2875, allocations: 154.5 kB / 470.6 MB, free: 23.17 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000828/0.2883, allocations: 499.4 kB / 471.1 MB, free: 22.82 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.544e-05/0.2883, allocations: 41.33 kB / 471.2 MB, free: 22.8 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.684e-05/0.2884, allocations: 54.48 kB / 471.2 MB, free: 22.78 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00118/0.2896, allocations: 0.6779 MB / 471.9 MB, free: 22.45 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.135e-05/0.2897, allocations: 8.875 kB / 471.9 MB, free: 22.45 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.34e-05/0.2897, allocations: 26.12 kB / 471.9 MB, free: 22.43 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.389e-05/0.2898, allocations: 25.3 kB / 472 MB, free: 22.43 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001266/0.291, allocations: 0.6277 MB / 472.6 MB, free: 22.23 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00315/0.2942, allocations: 2.697 MB / 475.3 MB, free: 20.34 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001399/0.2956, allocations: 0.6801 MB / 476 MB, free: 19.96 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.286e-05/0.2957, allocations: 4.953 kB / 476 MB, free: 19.96 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005468/0.2962, allocations: 309.8 kB / 476.3 MB, free: 19.75 MB / 350.1 MB Notification: Performance of pre-optimization done (n=41): time 2.044e-06/0.2962, allocations: 4 kB / 476.3 MB, free: 19.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=41): time 0.001619/0.2978, allocations: 0.793 MB / 477.1 MB, free: 19.3 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.208e-05/0.2979, allocations: 134.3 kB / 477.2 MB, free: 19.15 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005822/0.2985, allocations: 0.4923 MB / 477.7 MB, free: 18.84 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.461e-05/0.2985, allocations: 32.48 kB / 477.7 MB, free: 18.8 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001557/0.2987, allocations: 309 kB / 478 MB, free: 18.53 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.531e-05/0.2988, allocations: 142.9 kB / 478.2 MB, free: 18.41 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.3e-05/0.2988, allocations: 10.81 kB / 478.2 MB, free: 18.4 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.589e-05/0.2989, allocations: 368.1 kB / 478.5 MB, free: 18.04 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004361/0.2993, allocations: 201.6 kB / 478.7 MB, free: 17.95 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004638/0.2998, allocations: 331.7 kB / 479.1 MB, free: 17.7 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004935/0.3003, allocations: 265 kB / 479.3 MB, free: 17.55 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/0.3003, allocations: 1 kB / 479.3 MB, free: 17.55 MB / 350.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001648/0.302, allocations: 0.8122 MB / 480.1 MB, free: 17.13 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002565/0.3023, allocations: 1.334 MB / 481.5 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.628e-06/0.3023, allocations: 7.969 kB / 481.5 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005382/0.3028, allocations: 173 kB / 481.6 MB, free: 15.61 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003979/0.3032, allocations: 90.19 kB / 481.7 MB, free: 15.59 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003014/0.3062, allocations: 2.52 MB / 484.2 MB, free: 13.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000549/0.3068, allocations: 94.12 kB / 484.3 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.248e-05/0.3069, allocations: 19.03 kB / 484.4 MB, free: 13.46 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.747e-06/0.3069, allocations: 3.75 kB / 484.4 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00132/0.3082, allocations: 0.6407 MB / 485 MB, free: 13.12 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.462e-06/0.3082, allocations: 3.781 kB / 485 MB, free: 13.12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000315/0.3085, allocations: 130.1 kB / 485.1 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003528/0.3089, allocations: 97.86 kB / 485.2 MB, free: 13.03 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001747/0.3107, allocations: 2.268 MB / 487.5 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004524/0.3111, allocations: 71.61 kB / 487.6 MB, free: 10.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.242e-05/0.3112, allocations: 20 kB / 487.6 MB, free: 10.71 MB / 350.1 MB 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 43 * 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.000342/0.3115, allocations: 291.3 kB / 487.9 MB, free: 10.42 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.276e-05/0.3116, allocations: 59.34 kB / 487.9 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001013/0.3126, allocations: 0.5511 MB / 488.5 MB, free: 9.797 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.309e-06/0.3126, allocations: 4 kB / 488.5 MB, free: 9.793 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/0.3126, allocations: 0 / 488.5 MB, free: 9.793 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.263e-06/0.3127, allocations: 3.984 kB / 488.5 MB, free: 9.789 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001566/0.3142, allocations: 1.209 MB / 489.7 MB, free: 8.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.629e-06/0.3143, allocations: 4 kB / 489.7 MB, free: 8.516 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004095/0.3147, allocations: 91.88 kB / 489.8 MB, free: 8.426 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.862e-05/0.3148, allocations: 36.78 kB / 489.8 MB, free: 8.387 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.013e-05/0.3148, allocations: 8 kB / 489.8 MB, free: 8.379 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00066/0.3155, allocations: 1.347 MB / 491.2 MB, free: 6.898 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/0.3155, allocations: 7.984 kB / 491.2 MB, free: 6.891 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001349/0.3168, allocations: 0.9068 MB / 492.1 MB, free: 5.945 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001643/0.317, allocations: 180.2 kB / 492.3 MB, free: 5.75 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.377e-05/0.3171, allocations: 16 kB / 492.3 MB, free: 5.734 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003846/0.3175, allocations: 47.95 kB / 492.3 MB, free: 5.688 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.573e-05/0.3176, allocations: 39.94 kB / 492.4 MB, free: 5.648 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.539e-05/0.3176, allocations: 8 kB / 492.4 MB, free: 5.641 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004121/0.318, allocations: 358.8 kB / 492.7 MB, free: 5.293 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.318, allocations: 0 / 492.7 MB, free: 5.293 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008792/0.3189, allocations: 247.3 kB / 493 MB, free: 5.051 MB / 350.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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 36 * 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.001635/0.3206, allocations: 1.598 MB / 494.6 MB, free: 3.41 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001767/0.3223, allocations: 1.177 MB / 495.7 MB, free: 2.184 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.3224, allocations: 0 / 495.7 MB, free: 2.184 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005306/0.3229, allocations: 362.9 kB / 496.1 MB, free: 1.816 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005615/0.3235, allocations: 107.1 kB / 496.2 MB, free: 1.715 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007385/0.3309, allocations: 5.968 MB / 0.4904 GB, free: 11.62 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005644/0.3315, allocations: 0.9067 MB / 0.4913 GB, free: 10.69 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003896/0.3319, allocations: 104.3 kB / 0.4914 GB, free: 10.59 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002919/0.3322, allocations: 195.4 kB / 0.4916 GB, free: 10.4 MB / 366.1 MB Notification: Performance of SimCode: time 1.263e-06/0.3322, allocations: 0 / 0.4916 GB, free: 10.4 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02698/0.3592, allocations: 12.63 MB / 0.5039 GB, free: 13.99 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002234/0.3594, allocations: 220.9 kB / 0.5041 GB, free: 13.75 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.862/2.221, allocations: 3.656 kB / 0.5041 GB, free: 13.75 MB / 382.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) Environment - environmentSimulation: 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