Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad.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.OneEmergencySourceTwoLinesOneLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_OneEmergencySourceTwoLinesOneLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_OneEmergencySourceTwoLinesOneLoad",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.001032/0.001032, allocations: 189.4 kB / 7.847 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.149/1.149, allocations: 221.4 MB / 229.7 MB, free: 3 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.001016/0.001016, allocations: 91.88 kB / 280.5 MB, free: 1.223 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.03561/0.03561, allocations: 8.105 MB / 339.4 MB, free: 6.328 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1769/0.2126, allocations: 58.62 MB / 398 MB, free: 67.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07766/0.2903, allocations: 52.5 MB / 450.5 MB, free: 15.44 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2472/0.5375, allocations: 78.79 MB / 0.5169 GB, free: 15.58 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001994/0.5378, allocations: 62.55 kB / 0.517 GB, free: 15.55 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: 41 * Number of variables: 41 Notification: Performance of Generate backend data structure: time 0.02128/0.5591, allocations: 7.937 MB / 0.5247 GB, free: 9.309 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.785e-05/0.5591, allocations: 11.94 kB / 0.5247 GB, free: 9.297 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001073/0.5593, allocations: 23.72 kB / 0.5247 GB, free: 9.273 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003912/0.5597, allocations: 252.5 kB / 0.525 GB, free: 9.012 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.184e-05/0.5597, allocations: 8 kB / 0.525 GB, free: 9.004 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.301e-05/0.5597, allocations: 8.75 kB / 0.525 GB, free: 8.996 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000416/0.5602, allocations: 238.8 kB / 0.5252 GB, free: 8.863 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004023/0.5606, allocations: 231.1 kB / 0.5254 GB, free: 8.707 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.06e-05/0.5606, allocations: 0 / 0.5254 GB, free: 8.707 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.365e-05/0.5606, allocations: 0 / 0.5254 GB, free: 8.707 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.477e-06/0.5606, allocations: 4 kB / 0.5254 GB, free: 8.703 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001645/0.5623, allocations: 1.179 MB / 0.5266 GB, free: 7.621 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000394/0.5627, allocations: 261.5 kB / 0.5268 GB, free: 7.453 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002143/0.5629, allocations: 162.2 kB / 0.527 GB, free: 7.363 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001669/0.5631, allocations: 93.31 kB / 0.5271 GB, free: 7.254 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002982/0.5634, allocations: 200.5 kB / 0.5273 GB, free: 7.113 MB / 346.7 MB Notification: Performance of pre-optimization done (n=29): time 1.603e-06/0.5634, allocations: 0 / 0.5273 GB, free: 7.113 MB / 346.7 MB Notification: Performance of matching and sorting (n=29): time 0.001869/0.5653, allocations: 0.572 MB / 0.5278 GB, free: 6.68 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.427e-05/0.5654, allocations: 67.25 kB / 0.5279 GB, free: 6.602 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001537/0.5655, allocations: 151.7 kB / 0.528 GB, free: 6.465 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.249e-05/0.5656, allocations: 25.7 kB / 0.5281 GB, free: 6.434 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.79e-05/0.5656, allocations: 107.8 kB / 0.5282 GB, free: 6.332 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.388e-05/0.5657, allocations: 89.56 kB / 0.5283 GB, free: 6.254 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.637e-05/0.5657, allocations: 0 / 0.5283 GB, free: 6.254 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001266/0.5659, allocations: 334.2 kB / 0.5286 GB, free: 5.926 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001746/0.5661, allocations: 116.8 kB / 0.5287 GB, free: 5.867 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002039/0.5663, allocations: 150.6 kB / 0.5288 GB, free: 5.773 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004249/0.5667, allocations: 154.3 kB / 0.529 GB, free: 5.684 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.237e-06/0.5667, allocations: 0 / 0.529 GB, free: 5.684 MB / 346.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.00176/0.5685, allocations: 0.5875 MB / 0.5296 GB, free: 5.238 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.411e-05/0.5685, allocations: 4 kB / 0.5296 GB, free: 5.234 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/0.5685, allocations: 0 / 0.5296 GB, free: 5.234 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001537/0.5701, allocations: 298.3 kB / 0.5298 GB, free: 4.988 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002127/0.5703, allocations: 35.92 kB / 0.5299 GB, free: 4.953 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003316/0.5736, allocations: 2.152 MB / 0.532 GB, free: 3.117 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001809/0.5738, allocations: 7.844 kB / 0.532 GB, free: 3.109 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.259e-05/0.5738, allocations: 11.44 kB / 0.532 GB, free: 3.102 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * 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.0001366/0.574, allocations: 112.8 kB / 0.5321 GB, free: 2.984 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.307e-05/0.574, allocations: 19.81 kB / 0.5321 GB, free: 2.965 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001927/0.576, allocations: 0.6459 MB / 0.5328 GB, free: 2.484 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.471e-06/0.576, allocations: 7.938 kB / 0.5328 GB, free: 2.477 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.522e-06/0.576, allocations: 0 / 0.5328 GB, free: 2.477 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.776e-06/0.576, allocations: 7.969 kB / 0.5328 GB, free: 2.469 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003674/0.5764, allocations: 394.3 kB / 0.5331 GB, free: 2.145 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.5764, allocations: 7.938 kB / 0.5332 GB, free: 2.137 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002171/0.5766, allocations: 39.97 kB / 0.5332 GB, free: 2.098 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001424/0.5781, allocations: 287.2 kB / 0.5335 GB, free: 1.859 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.569e-05/0.5781, allocations: 3.984 kB / 0.5335 GB, free: 1.855 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003101/0.5812, allocations: 2.156 MB / 0.5356 GB, free: 20 kB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.288e-06/0.5812, allocations: 0 / 0.5356 GB, free: 20 kB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001937/0.5832, allocations: 0.6123 MB / 0.5362 GB, free: 15.54 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001961/0.5851, allocations: 1.006 MB / 0.5372 GB, free: 14.68 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.967e-05/0.5852, allocations: 103.8 kB / 0.5373 GB, free: 14.56 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.178e-05/0.5853, allocations: 0 / 0.5373 GB, free: 14.56 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002074/0.5855, allocations: 11.98 kB / 0.5373 GB, free: 14.55 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.221e-05/0.5856, allocations: 19.91 kB / 0.5373 GB, free: 14.53 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.155e-05/0.5856, allocations: 15.19 kB / 0.5373 GB, free: 14.52 MB / 362.7 MB Notification: Performance of sort global known variables: time 9.977e-05/0.5857, allocations: 120.1 kB / 0.5374 GB, free: 14.41 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001021/0.5867, allocations: 95.14 kB / 0.5375 GB, free: 14.32 MB / 362.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: 1 ($whenCondition1) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (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 Backend phase and start with SimCode phase: time 0.0002113/0.587, allocations: 107.2 kB / 0.5376 GB, free: 14.21 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001044/0.588, allocations: 481.6 kB / 0.5381 GB, free: 13.86 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.588, allocations: 0 / 0.5381 GB, free: 13.86 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008192/0.5889, allocations: 336.9 kB / 0.5384 GB, free: 13.6 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002102/0.5891, allocations: 15.19 kB / 0.5384 GB, free: 13.59 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007838/0.5899, allocations: 317.9 kB / 0.5387 GB, free: 13.31 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003572/0.5903, allocations: 0.7757 MB / 0.5395 GB, free: 12.52 MB / 362.7 MB Notification: Performance of SimCode: time 3.21e-07/0.5903, allocations: 0 / 0.5395 GB, free: 12.52 MB / 362.7 MB (rm -f PowerSysPro_PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Examples_OneEmergencySourceTwoLinesOneLoad_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Examples_OneEmergencySourceTwoLinesOneLoad.fmu > PowerSysPro_PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad.pipe 2>&1)