Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.DegradedModeForLoads.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/PowerSysPro 2.3.1/package.mo", uses=false) Using package PowerSysPro with version 2.3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/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(PowerSysPro.Examples.DegradedModeForLoads,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_DegradedModeForLoads",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.DegradedModeForLoads,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_DegradedModeForLoads",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.0007938/0.0007939, allocations: 88.17 kB / 15.75 MB, free: 408 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008885/0.0008886, allocations: 180 kB / 16.63 MB, free: 6.895 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.243/1.243, allocations: 223.2 MB / 240.6 MB, free: 5.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.1405/0.1405, allocations: 8.092 MB / 299.8 MB, free: 2.891 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002656/0.0002656, allocations: 12 kB / 363 MB, free: 13.15 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07997/0.08025, allocations: 52.51 MB / 415.5 MB, free: 8.594 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.DegradedModeForLoads): time 0.001401/0.08169, allocations: 1.098 MB / 416.6 MB, free: 7.492 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001602/0.08332, allocations: 1.357 MB / 417.9 MB, free: 6.121 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.069e-05/0.08342, allocations: 4 kB / 417.9 MB, free: 6.117 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002391/0.08367, allocations: 83.61 kB / 418 MB, free: 6.035 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003243/0.084, allocations: 127.4 kB / 418.1 MB, free: 5.91 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001194/0.0852, allocations: 0.7358 MB / 418.9 MB, free: 5.176 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002231/0.08543, allocations: 175.1 kB / 419 MB, free: 5.004 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001054/0.08555, allocations: 41.83 kB / 419.1 MB, free: 4.961 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.833e-05/0.08563, allocations: 67.77 kB / 419.1 MB, free: 4.895 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001478/0.08579, allocations: 95.59 kB / 419.2 MB, free: 4.801 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.759e-05/0.08582, allocations: 8 kB / 419.2 MB, free: 4.793 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003295/0.08616, allocations: 211.8 kB / 419.5 MB, free: 4.586 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.364e-05/0.08621, allocations: 39.83 kB / 419.5 MB, free: 4.547 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.482e-05/0.08626, allocations: 53.64 kB / 419.5 MB, free: 4.488 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003012/0.08657, allocations: 247.6 kB / 419.8 MB, free: 4.246 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.656e-06/0.08658, allocations: 0 / 419.8 MB, free: 4.246 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.08659, allocations: 0 / 419.8 MB, free: 4.246 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.539e-06/0.0866, allocations: 0 / 419.8 MB, free: 4.246 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: 37 * Number of variables: 37 Notification: Performance of Generate backend data structure: time 0.001655/0.08826, allocations: 0.6781 MB / 420.5 MB, free: 3.52 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.161e-05/0.0883, allocations: 8.031 kB / 420.5 MB, free: 3.512 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.597e-05/0.08836, allocations: 50.55 kB / 420.5 MB, free: 3.453 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.016e-05/0.08842, allocations: 23.77 kB / 420.5 MB, free: 3.43 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002328/0.08865, allocations: 234.7 kB / 420.8 MB, free: 3.16 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.077e-05/0.08873, allocations: 71.16 kB / 420.8 MB, free: 3.078 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.536e-05/0.08877, allocations: 12 kB / 420.9 MB, free: 3.066 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003454/0.08912, allocations: 221.6 kB / 421.1 MB, free: 2.844 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.967e-06/0.08914, allocations: 0 / 421.1 MB, free: 2.844 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.208e-05/0.08917, allocations: 15.89 kB / 421.1 MB, free: 2.828 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.68e-06/0.08918, allocations: 7.938 kB / 421.1 MB, free: 2.82 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003118/0.08949, allocations: 199.9 kB / 421.3 MB, free: 2.625 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001271/0.09077, allocations: 0.9205 MB / 422.2 MB, free: 1.629 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004828/0.09127, allocations: 235 kB / 422.4 MB, free: 1.391 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001649/0.09145, allocations: 113.1 kB / 422.5 MB, free: 1.277 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001136/0.09157, allocations: 89.28 kB / 422.6 MB, free: 1.172 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002972/0.09188, allocations: 173 kB / 422.8 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.352e-06/0.09189, allocations: 0 / 422.8 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.001457/0.09335, allocations: 0.6036 MB / 423.4 MB, free: 372 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.079e-05/0.09339, allocations: 63.34 kB / 423.5 MB, free: 296 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001545/0.09355, allocations: 171.3 kB / 423.6 MB, free: 108 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.485e-05/0.09359, allocations: 29.7 kB / 423.7 MB, free: 72 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.1598/0.2534, allocations: 129.5 kB / 423.8 MB, free: 41.6 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001075/0.2536, allocations: 77.11 kB / 423.9 MB, free: 41.57 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.341e-05/0.2536, allocations: 8.375 kB / 423.9 MB, free: 41.57 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.654e-05/0.2537, allocations: 326.6 kB / 424.2 MB, free: 41.26 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002219/0.2539, allocations: 116.7 kB / 424.3 MB, free: 41.26 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001964/0.2541, allocations: 158.7 kB / 424.5 MB, free: 41.21 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002108/0.2544, allocations: 125.3 kB / 424.6 MB, free: 41.21 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.2544, allocations: 0 / 424.6 MB, free: 41.21 MB / 350.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0009186/0.2553, allocations: 478.8 kB / 425.1 MB, free: 41.16 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.809e-05/0.2553, allocations: 9.328 kB / 425.1 MB, free: 41.16 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.062e-06/0.2553, allocations: 1.297 kB / 425.1 MB, free: 41.16 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007928/0.2561, allocations: 192.1 kB / 425.3 MB, free: 41.16 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000175/0.2563, allocations: 49.58 kB / 425.3 MB, free: 41.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005214/0.2568, allocations: 0.7199 MB / 426 MB, free: 40.64 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001792/0.257, allocations: 29.44 kB / 426 MB, free: 40.63 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.152e-05/0.2571, allocations: 11.45 kB / 426.1 MB, free: 40.63 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,$PRE.load.degradedMode,load.degradedMode) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * 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 {3 5} Notification: Performance of prepare postOptimizeDAE: time 0.0001023/0.2572, allocations: 139.7 kB / 426.2 MB, free: 40.52 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.874e-05/0.2572, allocations: 21.3 kB / 426.2 MB, free: 40.5 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006322/0.2578, allocations: 379.7 kB / 426.6 MB, free: 40.46 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.679e-06/0.2579, allocations: 7.797 kB / 426.6 MB, free: 40.46 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.2579, allocations: 0 / 426.6 MB, free: 40.46 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/0.2579, allocations: 0 / 426.6 MB, free: 40.46 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000239/0.2581, allocations: 349.9 kB / 426.9 MB, free: 40.26 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.2581, allocations: 0 / 426.9 MB, free: 40.26 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.893e-05/0.2582, allocations: 28.17 kB / 427 MB, free: 40.26 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006487/0.2589, allocations: 191.4 kB / 427.2 MB, free: 40.25 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.732e-05/0.2589, allocations: 7.094 kB / 427.2 MB, free: 40.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004388/0.2594, allocations: 0.7306 MB / 427.9 MB, free: 39.72 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.2594, allocations: 3.406 kB / 427.9 MB, free: 39.72 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005223/0.2599, allocations: 375.5 kB / 428.3 MB, free: 39.64 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.519e-05/0.26, allocations: 99.5 kB / 428.4 MB, free: 39.53 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.333e-05/0.26, allocations: 10.17 kB / 428.4 MB, free: 39.53 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001441/0.2601, allocations: 16.97 kB / 428.4 MB, free: 39.53 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.239e-05/0.2602, allocations: 14.81 kB / 428.4 MB, free: 39.53 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.783e-05/0.2602, allocations: 9.719 kB / 428.4 MB, free: 39.53 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.211e-05/0.2603, allocations: 132.8 kB / 428.5 MB, free: 39.45 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2603, allocations: 0 / 428.5 MB, free: 39.45 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002833/0.2606, allocations: 57.25 kB / 428.6 MB, free: 39.45 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition1,load.degradedMode) * Number of discrete states: 1 (load.degradedMode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * 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 {3 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009222/0.2615, allocations: 0.9302 MB / 429.5 MB, free: 38.84 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006294/0.2622, allocations: 308.7 kB / 429.8 MB, free: 38.82 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.2622, allocations: 1.031 kB / 429.8 MB, free: 38.82 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004321/0.2626, allocations: 152.9 kB / 430 MB, free: 38.82 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003576/0.263, allocations: 25.25 kB / 430 MB, free: 38.81 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002835/0.2659, allocations: 1.397 MB / 431.4 MB, free: 38.29 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001478/0.266, allocations: 0.725 MB / 432.1 MB, free: 37.59 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001608/0.2662, allocations: 26.39 kB / 432.1 MB, free: 37.58 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001139/0.2663, allocations: 51.39 kB / 432.2 MB, free: 37.57 MB / 350.1 MB Notification: Performance of SimCode: time 8.01e-07/0.2664, allocations: 0 / 432.2 MB, free: 37.57 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0184/0.2848, allocations: 5.272 MB / 437.5 MB, free: 37.18 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001928/0.285, allocations: 204 kB / 437.7 MB, free: 36.94 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.602/1.887, allocations: 3.938 kB / 437.7 MB, free: 36.94 MB / 350.1 MB (rm -f PowerSysPro_PowerSysPro.Examples.DegradedModeForLoads.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.DegradedModeForLoads.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.DegradedModeForLoads.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.DegradedModeForLoads.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Examples_DegradedModeForLoads_fmu --startTime=0 --stopTime=400 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Examples_DegradedModeForLoads.fmu > PowerSysPro_PowerSysPro.Examples.DegradedModeForLoads.pipe 2>&1) Environment - environmentSimulation: