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.0009066/0.0009066, allocations: 96.75 kB / 15.73 MB, free: 440 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.0008769/0.0008771, allocations: 178.3 kB / 16.61 MB, free: 6.422 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.233/1.233, allocations: 223.2 MB / 240.6 MB, free: 5.367 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.1369/0.1369, allocations: 8.085 MB / 299.7 MB, free: 2.918 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002865/0.0002865, allocations: 8 kB / 362.8 MB, free: 13.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08208/0.08239, allocations: 52.52 MB / 415.4 MB, free: 8.652 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.DegradedModeForLoads): time 0.001254/0.08367, allocations: 1.026 MB / 416.4 MB, free: 7.621 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0014/0.08508, allocations: 1.361 MB / 417.8 MB, free: 6.246 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.963e-05/0.08514, allocations: 0 / 417.8 MB, free: 6.246 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002211/0.08537, allocations: 87.53 kB / 417.8 MB, free: 6.16 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003047/0.08569, allocations: 139.6 kB / 418 MB, free: 6.023 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001107/0.0868, allocations: 0.7279 MB / 418.7 MB, free: 5.293 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001948/0.08701, allocations: 139.7 kB / 418.8 MB, free: 5.156 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001038/0.08712, allocations: 41.83 kB / 418.9 MB, free: 5.113 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.029e-05/0.0872, allocations: 71.7 kB / 418.9 MB, free: 5.043 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001412/0.08734, allocations: 87.66 kB / 419 MB, free: 4.957 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.085e-05/0.08737, allocations: 8 kB / 419 MB, free: 4.949 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002665/0.08764, allocations: 183.8 kB / 419.2 MB, free: 4.77 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.482e-05/0.08769, allocations: 35.83 kB / 419.3 MB, free: 4.734 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.178e-05/0.08774, allocations: 57.64 kB / 419.3 MB, free: 4.672 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000279/0.08802, allocations: 243.7 kB / 419.6 MB, free: 4.434 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.224e-06/0.08803, allocations: 0 / 419.6 MB, free: 4.434 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.08804, allocations: 0 / 419.6 MB, free: 4.434 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.587e-06/0.08805, allocations: 0 / 419.6 MB, free: 4.434 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.001827/0.08988, allocations: 0.6781 MB / 420.2 MB, free: 3.707 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.822e-05/0.08993, allocations: 12.03 kB / 420.2 MB, free: 3.695 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.342e-05/0.08998, allocations: 50.48 kB / 420.3 MB, free: 3.637 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.305e-05/0.09004, allocations: 23.77 kB / 420.3 MB, free: 3.613 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002433/0.09029, allocations: 230.7 kB / 420.5 MB, free: 3.348 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.684e-05/0.09038, allocations: 75.16 kB / 420.6 MB, free: 3.262 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.849e-05/0.09042, allocations: 15.98 kB / 420.6 MB, free: 3.246 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003503/0.09077, allocations: 217.5 kB / 420.8 MB, free: 3.027 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.316e-06/0.09079, allocations: 3.953 kB / 420.8 MB, free: 3.023 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.551e-05/0.09082, allocations: 15.94 kB / 420.9 MB, free: 3.008 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.025e-06/0.09084, allocations: 8 kB / 420.9 MB, free: 3 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000318/0.09116, allocations: 195.9 kB / 421.1 MB, free: 2.809 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001355/0.09252, allocations: 0.9205 MB / 422 MB, free: 1.812 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005136/0.09305, allocations: 239 kB / 422.2 MB, free: 1.57 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001051/0.09316, allocations: 81.3 kB / 422.3 MB, free: 1.473 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002913/0.09347, allocations: 173 kB / 422.5 MB, free: 1.293 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.422e-06/0.09348, allocations: 0 / 422.5 MB, free: 1.293 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.001615/0.0951, allocations: 0.6077 MB / 423.1 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.097e-05/0.09514, allocations: 59.36 kB / 423.1 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001604/0.09531, allocations: 175.2 kB / 423.3 MB, free: 412 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.755e-05/0.09535, allocations: 33.64 kB / 423.3 MB, free: 372 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.606e-05/0.09542, allocations: 128.2 kB / 423.5 MB, free: 240 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.695e-05/0.09548, allocations: 70.94 kB / 423.5 MB, free: 168 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.675e-05/0.0955, allocations: 12 kB / 423.5 MB, free: 156 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.1384/0.2339, allocations: 326.8 kB / 423.9 MB, free: 40.94 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002241/0.2342, allocations: 114.6 kB / 424 MB, free: 40.94 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001794/0.2344, allocations: 158.8 kB / 424.1 MB, free: 40.89 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001956/0.2346, allocations: 125.8 kB / 424.2 MB, free: 40.89 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.796e-06/0.2346, allocations: 0 / 424.2 MB, free: 40.89 MB / 350.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0009312/0.2355, allocations: 481.8 kB / 424.7 MB, free: 40.85 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.438e-05/0.2355, allocations: 5.625 kB / 424.7 MB, free: 40.85 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/0.2356, allocations: 2.25 kB / 424.7 MB, free: 40.85 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008344/0.2364, allocations: 194.1 kB / 424.9 MB, free: 40.84 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001718/0.2366, allocations: 42.73 kB / 425 MB, free: 40.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004763/0.2371, allocations: 0.7264 MB / 425.7 MB, free: 40.33 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001883/0.2373, allocations: 20.2 kB / 425.7 MB, free: 40.33 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.192e-05/0.2373, allocations: 14.42 kB / 425.7 MB, free: 40.33 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.0001059/0.2374, allocations: 135.8 kB / 425.8 MB, free: 40.21 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.014e-05/0.2374, allocations: 20.91 kB / 425.9 MB, free: 40.21 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006303/0.2381, allocations: 391.9 kB / 426.3 MB, free: 40.17 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.2381, allocations: 2.812 kB / 426.3 MB, free: 40.17 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.2381, allocations: 3.062 kB / 426.3 MB, free: 40.17 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.068e-06/0.2381, allocations: 1.172 kB / 426.3 MB, free: 40.17 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002264/0.2383, allocations: 340.7 kB / 426.6 MB, free: 39.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/0.2384, allocations: 0 / 426.6 MB, free: 39.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001041/0.2385, allocations: 25.41 kB / 426.6 MB, free: 39.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000686/0.2392, allocations: 192 kB / 426.8 MB, free: 39.97 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.736e-05/0.2392, allocations: 11.59 kB / 426.8 MB, free: 39.97 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004356/0.2396, allocations: 0.7288 MB / 427.5 MB, free: 39.45 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.2396, allocations: 0.7031 kB / 427.5 MB, free: 39.45 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005376/0.2402, allocations: 372.4 kB / 427.9 MB, free: 39.37 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.621e-05/0.2402, allocations: 102 kB / 428 MB, free: 39.26 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.32e-05/0.2403, allocations: 5.203 kB / 428 MB, free: 39.26 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001581/0.2404, allocations: 19.03 kB / 428 MB, free: 39.26 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.021e-05/0.2405, allocations: 15.5 kB / 428 MB, free: 39.26 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.902e-05/0.2405, allocations: 11.05 kB / 428.1 MB, free: 39.26 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.711e-05/0.2406, allocations: 136 kB / 428.2 MB, free: 39.18 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.2406, allocations: 3.656 kB / 428.2 MB, free: 39.18 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002725/0.2409, allocations: 62.44 kB / 428.3 MB, free: 39.18 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.0007372/0.2416, allocations: 0.9238 MB / 429.2 MB, free: 38.56 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006187/0.2423, allocations: 312.4 kB / 429.5 MB, free: 38.55 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.2423, allocations: 0 / 429.5 MB, free: 38.55 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003668/0.2427, allocations: 150.2 kB / 429.6 MB, free: 38.55 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001686/0.2428, allocations: 23.47 kB / 429.7 MB, free: 38.54 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008663/0.2437, allocations: 1.321 MB / 431 MB, free: 37.46 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001107/0.2438, allocations: 0.7245 MB / 431.7 MB, free: 36.77 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.499e-05/0.2439, allocations: 29.41 kB / 431.7 MB, free: 36.77 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.72e-05/0.244, allocations: 51.58 kB / 431.8 MB, free: 36.76 MB / 350.1 MB Notification: Performance of SimCode: time 2.31e-07/0.244, allocations: 3.828 kB / 431.8 MB, free: 36.76 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01387/0.2579, allocations: 5.203 MB / 437 MB, free: 36.36 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000104/0.258, allocations: 196.6 kB / 437.2 MB, free: 36.12 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.54/1.798, allocations: 4 kB / 437.2 MB, free: 36.12 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: