Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.TwoSourcesOneLineThreeSensors.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.TwoSourcesOneLineThreeSensors,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_TwoSourcesOneLineThreeSensors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.TwoSourcesOneLineThreeSensors,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_TwoSourcesOneLineThreeSensors",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.001126/0.001126, allocations: 186.1 kB / 7.845 MB, free: 2.469 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.175/1.175, allocations: 221.4 MB / 229.7 MB, free: 3.023 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.0009692/0.0009692, allocations: 96.09 kB / 280.5 MB, free: 1.27 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.0374/0.0374, allocations: 8.099 MB / 339.4 MB, free: 6.359 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.193/0.2305, allocations: 58.63 MB / 398 MB, free: 67.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08006/0.3105, allocations: 52.49 MB / 450.5 MB, free: 15.44 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2647/0.5753, allocations: 78.96 MB / 0.5171 GB, free: 15.45 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001857/0.5756, allocations: 59.17 kB / 0.5171 GB, free: 15.43 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: 62 * Number of variables: 62 Notification: Performance of Generate backend data structure: time 0.02176/0.5973, allocations: 8.255 MB / 0.5252 GB, free: 8.938 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.66e-05/0.5974, allocations: 19.94 kB / 0.5252 GB, free: 8.918 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001054/0.5975, allocations: 23.72 kB / 0.5252 GB, free: 8.895 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003031/0.5978, allocations: 244.6 kB / 0.5254 GB, free: 8.645 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.621e-05/0.5979, allocations: 8 kB / 0.5255 GB, free: 8.637 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.998e-05/0.5979, allocations: 12 kB / 0.5255 GB, free: 8.625 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005197/0.5984, allocations: 275.9 kB / 0.5257 GB, free: 8.465 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000443/0.5989, allocations: 256.2 kB / 0.526 GB, free: 8.285 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.356e-05/0.5989, allocations: 0 / 0.526 GB, free: 8.285 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.656e-05/0.599, allocations: 0 / 0.526 GB, free: 8.285 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.094e-05/0.599, allocations: 8 kB / 0.526 GB, free: 8.277 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001726/0.6007, allocations: 0.8799 MB / 0.5268 GB, free: 7.586 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003564/0.6011, allocations: 232.2 kB / 0.5271 GB, free: 7.434 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001626/0.6013, allocations: 111.5 kB / 0.5272 GB, free: 7.367 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001752/0.6014, allocations: 89.28 kB / 0.5273 GB, free: 7.262 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.455e-05/0.6015, allocations: 33.94 kB / 0.5273 GB, free: 7.223 MB / 346.7 MB Notification: Performance of pre-optimization done (n=22): time 1.853e-06/0.6015, allocations: 4 kB / 0.5273 GB, free: 7.219 MB / 346.7 MB Notification: Performance of matching and sorting (n=22): time 0.0008192/0.6023, allocations: 273.8 kB / 0.5275 GB, free: 7.027 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.819e-05/0.6024, allocations: 59.34 kB / 0.5276 GB, free: 6.957 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002106/0.6026, allocations: 165.2 kB / 0.5278 GB, free: 6.816 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.89e-05/0.6026, allocations: 29.7 kB / 0.5278 GB, free: 6.781 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001062/0.6027, allocations: 158.2 kB / 0.5279 GB, free: 6.633 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.279e-05/0.6028, allocations: 74.06 kB / 0.528 GB, free: 6.57 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.5e-05/0.6028, allocations: 8 kB / 0.528 GB, free: 6.562 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001596/0.603, allocations: 322.7 kB / 0.5283 GB, free: 6.242 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001627/0.6032, allocations: 111.7 kB / 0.5284 GB, free: 6.184 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000164/0.6033, allocations: 109.2 kB / 0.5285 GB, free: 6.125 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003999/0.6037, allocations: 140.8 kB / 0.5287 GB, free: 6.039 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.6038, allocations: 0 / 0.5287 GB, free: 6.039 MB / 346.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0008265/0.6046, allocations: 377.2 kB / 0.529 GB, free: 5.77 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.709e-05/0.6046, allocations: 11.59 kB / 0.529 GB, free: 5.762 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.913e-06/0.6046, allocations: 0 / 0.529 GB, free: 5.762 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002979/0.6049, allocations: 48.77 kB / 0.5291 GB, free: 5.727 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000287/0.6052, allocations: 51.91 kB / 0.5291 GB, free: 5.676 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0015/0.6067, allocations: 1.395 MB / 0.5305 GB, free: 4.281 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001997/0.607, allocations: 15.69 kB / 0.5305 GB, free: 4.266 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.251e-05/0.607, allocations: 15.73 kB / 0.5305 GB, free: 4.254 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 30 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001112/0.6071, allocations: 109.3 kB / 0.5306 GB, free: 4.145 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.941e-05/0.6072, allocations: 15.81 kB / 0.5307 GB, free: 4.129 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007022/0.6079, allocations: 304.2 kB / 0.5309 GB, free: 3.91 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.251e-06/0.6079, allocations: 7.906 kB / 0.5309 GB, free: 3.902 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.6079, allocations: 0 / 0.5309 GB, free: 3.902 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.374e-06/0.6079, allocations: 3.984 kB / 0.531 GB, free: 3.898 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001066/0.609, allocations: 0.6921 MB / 0.5316 GB, free: 3.34 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.806e-06/0.609, allocations: 0 / 0.5316 GB, free: 3.34 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001651/0.6092, allocations: 35.73 kB / 0.5317 GB, free: 3.309 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002134/0.6094, allocations: 55.09 kB / 0.5317 GB, free: 3.266 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.032e-05/0.6094, allocations: 4 kB / 0.5317 GB, free: 3.262 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00137/0.6108, allocations: 1.381 MB / 0.5331 GB, free: 1.879 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.857e-06/0.6108, allocations: 4 kB / 0.5331 GB, free: 1.875 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006236/0.6115, allocations: 377.3 kB / 0.5334 GB, free: 1.57 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0007633/0.6122, allocations: 0.7498 MB / 0.5342 GB, free: 0.8906 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.958e-05/0.6123, allocations: 100.1 kB / 0.5343 GB, free: 0.7773 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.54e-05/0.6124, allocations: 3.906 kB / 0.5343 GB, free: 0.7734 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001498/0.6125, allocations: 4 kB / 0.5343 GB, free: 0.7695 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.809e-05/0.6126, allocations: 11.98 kB / 0.5343 GB, free: 0.7578 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.626e-05/0.6126, allocations: 7.312 kB / 0.5343 GB, free: 0.7539 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.0001018/0.6127, allocations: 125.1 kB / 0.5344 GB, free: 0.6484 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0009416/0.6136, allocations: 79.02 kB / 0.5345 GB, free: 0.5742 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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 20 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002025/0.6139, allocations: 115.1 kB / 0.5346 GB, free: 468 kB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0007042/0.6146, allocations: 362.8 kB / 0.5349 GB, free: 192 kB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.746e-06/0.6146, allocations: 0 / 0.5349 GB, free: 192 kB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000423/0.615, allocations: 228.1 kB / 0.5352 GB, free: 15.99 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001778/0.6152, allocations: 15.84 kB / 0.5352 GB, free: 15.98 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006728/0.6159, allocations: 258.8 kB / 0.5354 GB, free: 15.76 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004158/0.6163, allocations: 0.7744 MB / 0.5362 GB, free: 14.96 MB / 362.7 MB Notification: Performance of SimCode: time 2.6e-07/0.6163, allocations: 3.938 kB / 0.5362 GB, free: 14.96 MB / 362.7 MB (rm -f PowerSysPro_PowerSysPro.Examples.TwoSourcesOneLineThreeSensors.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.TwoSourcesOneLineThreeSensors.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.TwoSourcesOneLineThreeSensors.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.TwoSourcesOneLineThreeSensors.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Examples_TwoSourcesOneLineThreeSensors_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Examples_TwoSourcesOneLineThreeSensors.fmu > PowerSysPro_PowerSysPro.Examples.TwoSourcesOneLineThreeSensors.pipe 2>&1)