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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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) 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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001567/0.001567, allocations: 184.7 kB / 7.844 MB, free: 2.512 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.23/1.23, allocations: 221.4 MB / 229.7 MB, free: 3.125 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001075/0.001075, allocations: 91.81 kB / 280.5 MB, free: 1.242 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.03892/0.03892, allocations: 8.096 MB / 339.4 MB, free: 6.324 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1781/0.2171, allocations: 58.62 MB / 398 MB, free: 67.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0846/0.3017, allocations: 52.51 MB / 450.5 MB, free: 15.42 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2675/0.5693, allocations: 79.35 MB / 0.5174 GB, free: 14.71 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002275/0.5695, allocations: 60.41 kB / 0.5175 GB, free: 14.69 MB / 346.7 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.01807/0.5876, allocations: 6.554 MB / 0.5239 GB, free: 9.465 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.1e-05/0.5877, allocations: 12.69 kB / 0.5239 GB, free: 9.453 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001118/0.5878, allocations: 23.72 kB / 0.5239 GB, free: 9.43 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003655/0.5882, allocations: 231.6 kB / 0.5241 GB, free: 9.188 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001099/0.5883, allocations: 63.41 kB / 0.5242 GB, free: 9.113 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.239e-05/0.5884, allocations: 11.94 kB / 0.5242 GB, free: 9.105 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003101/0.5887, allocations: 184.1 kB / 0.5244 GB, free: 9 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003196/0.589, allocations: 197.2 kB / 0.5246 GB, free: 8.859 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.19e-05/0.589, allocations: 0 / 0.5246 GB, free: 8.859 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.896e-05/0.5891, allocations: 7.938 kB / 0.5246 GB, free: 8.852 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.075e-05/0.5891, allocations: 4 kB / 0.5246 GB, free: 8.848 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001789/0.5909, allocations: 0.9313 MB / 0.5255 GB, free: 8.102 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002916/0.5912, allocations: 192.2 kB / 0.5257 GB, free: 7.977 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001314/0.5913, allocations: 99.34 kB / 0.5258 GB, free: 7.922 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.23e-05/0.5914, allocations: 8 kB / 0.5258 GB, free: 7.914 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000213/0.5916, allocations: 149.1 kB / 0.5259 GB, free: 7.801 MB / 346.7 MB Notification: Performance of pre-optimization done (n=21): time 1.733e-06/0.5916, allocations: 0 / 0.5259 GB, free: 7.801 MB / 346.7 MB Notification: Performance of matching and sorting (n=21): time 0.001027/0.5926, allocations: 368.5 kB / 0.5263 GB, free: 7.531 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.49e-05/0.5927, allocations: 55.41 kB / 0.5263 GB, free: 7.465 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001422/0.5928, allocations: 160.6 kB / 0.5265 GB, free: 7.32 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.786e-05/0.5929, allocations: 29.64 kB / 0.5265 GB, free: 7.285 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.73e-05/0.5929, allocations: 123 kB / 0.5266 GB, free: 7.168 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.433e-05/0.593, allocations: 68.81 kB / 0.5267 GB, free: 7.109 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.527e-05/0.593, allocations: 0 / 0.5267 GB, free: 7.109 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001102/0.5931, allocations: 327.9 kB / 0.527 GB, free: 6.785 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001439/0.5933, allocations: 99.06 kB / 0.5271 GB, free: 6.734 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001683/0.5935, allocations: 135.4 kB / 0.5272 GB, free: 6.637 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003076/0.5938, allocations: 114.5 kB / 0.5273 GB, free: 6.566 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.5938, allocations: 0 / 0.5273 GB, free: 6.566 MB / 346.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001044/0.5948, allocations: 422.5 kB / 0.5277 GB, free: 6.258 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.584e-05/0.5949, allocations: 7.281 kB / 0.5278 GB, free: 6.254 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.624e-06/0.5949, allocations: 4 kB / 0.5278 GB, free: 6.25 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007031/0.5956, allocations: 168.7 kB / 0.5279 GB, free: 6.121 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001859/0.5958, allocations: 35.97 kB / 0.528 GB, free: 6.086 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007379/0.5965, allocations: 0.7349 MB / 0.5287 GB, free: 5.434 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002184/0.5968, allocations: 27.67 kB / 0.5287 GB, free: 5.406 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.728e-05/0.5968, allocations: 11.56 kB / 0.5287 GB, free: 5.398 MB / 346.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: load.U:VARIABLE(unit = "V" ) "Voltage at the load" type: Real 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 22 * 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.0001528/0.597, allocations: 113.9 kB / 0.5288 GB, free: 5.281 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.038e-05/0.597, allocations: 15.81 kB / 0.5288 GB, free: 5.266 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008945/0.5979, allocations: 382.7 kB / 0.5292 GB, free: 5.008 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.048e-06/0.5979, allocations: 0 / 0.5292 GB, free: 5.008 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.558e-06/0.5979, allocations: 0 / 0.5292 GB, free: 5.008 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.427e-06/0.5979, allocations: 3.984 kB / 0.5292 GB, free: 5.004 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002971/0.5982, allocations: 324.5 kB / 0.5295 GB, free: 4.723 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.5983, allocations: 0 / 0.5295 GB, free: 4.723 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001158/0.5984, allocations: 23.92 kB / 0.5295 GB, free: 4.699 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006122/0.599, allocations: 176.8 kB / 0.5297 GB, free: 4.559 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.415e-05/0.599, allocations: 4 kB / 0.5297 GB, free: 4.555 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006575/0.5997, allocations: 0.7458 MB / 0.5304 GB, free: 3.898 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.007e-06/0.5997, allocations: 3.906 kB / 0.5304 GB, free: 3.895 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007886/0.6005, allocations: 380 kB / 0.5308 GB, free: 3.609 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0009066/0.6014, allocations: 0.7469 MB / 0.5315 GB, free: 2.949 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.434e-05/0.6015, allocations: 92.86 kB / 0.5316 GB, free: 2.84 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.471e-05/0.6016, allocations: 4 kB / 0.5316 GB, free: 2.836 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001799/0.6017, allocations: 15.98 kB / 0.5316 GB, free: 2.82 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.195e-05/0.6018, allocations: 15.03 kB / 0.5317 GB, free: 2.809 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.156e-05/0.6018, allocations: 4 kB / 0.5317 GB, free: 2.805 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.665e-05/0.6019, allocations: 128.9 kB / 0.5318 GB, free: 2.695 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008437/0.6028, allocations: 55.41 kB / 0.5318 GB, free: 2.645 MB / 346.7 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 14 * 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.0001819/0.603, allocations: 118.7 kB / 0.5319 GB, free: 2.52 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0006165/0.6036, allocations: 261.8 kB / 0.5322 GB, free: 2.355 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.6036, allocations: 4.062 kB / 0.5322 GB, free: 2.352 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003783/0.604, allocations: 139.1 kB / 0.5323 GB, free: 2.262 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001905/0.6042, allocations: 7.5 kB / 0.5323 GB, free: 2.258 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006811/0.6049, allocations: 255 kB / 0.5326 GB, free: 2.031 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002971/0.6052, allocations: 0.7504 MB / 0.5333 GB, free: 1.258 MB / 346.7 MB Notification: Performance of SimCode: time 2.61e-07/0.6052, allocations: 0 / 0.5333 GB, free: 1.258 MB / 346.7 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)