Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.TwoSourcesTwoLinesOneLoad.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.TwoSourcesTwoLinesOneLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_TwoSourcesTwoLinesOneLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.TwoSourcesTwoLinesOneLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_TwoSourcesTwoLinesOneLoad",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.0009975/0.0009975, allocations: 190.6 kB / 7.848 MB, free: 2.488 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.132/1.132, allocations: 221.4 MB / 229.7 MB, free: 3.02 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.0008705/0.0008703, allocations: 90 kB / 280.5 MB, free: 1.258 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.0352/0.0352, allocations: 8.095 MB / 339.4 MB, free: 6.363 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1689/0.2041, allocations: 58.62 MB / 398 MB, free: 67.94 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07483/0.2789, allocations: 52.52 MB / 450.5 MB, free: 15.44 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2351/0.514, allocations: 78.87 MB / 0.517 GB, free: 15.26 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001393/0.5142, allocations: 56.3 kB / 0.517 GB, free: 15.23 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: 47 * Number of variables: 47 Notification: Performance of Generate backend data structure: time 0.02189/0.5361, allocations: 8.659 MB / 0.5255 GB, free: 8.426 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.591e-05/0.5361, allocations: 15.94 kB / 0.5255 GB, free: 8.41 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.849e-05/0.5362, allocations: 27.62 kB / 0.5255 GB, free: 8.383 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000307/0.5365, allocations: 255.4 kB / 0.5258 GB, free: 8.121 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.348e-05/0.5365, allocations: 8 kB / 0.5258 GB, free: 8.113 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.784e-05/0.5366, allocations: 15.91 kB / 0.5258 GB, free: 8.098 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003869/0.537, allocations: 265.3 kB / 0.526 GB, free: 7.953 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003832/0.5374, allocations: 253.1 kB / 0.5263 GB, free: 7.781 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.428e-06/0.5374, allocations: 0 / 0.5263 GB, free: 7.781 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.761e-05/0.5374, allocations: 8 kB / 0.5263 GB, free: 7.773 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.506e-06/0.5374, allocations: 8 kB / 0.5263 GB, free: 7.766 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001579/0.539, allocations: 1.08 MB / 0.5274 GB, free: 6.875 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003648/0.5394, allocations: 290.5 kB / 0.5276 GB, free: 6.699 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002019/0.5396, allocations: 165.4 kB / 0.5278 GB, free: 6.609 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.923e-05/0.5397, allocations: 12.16 kB / 0.5278 GB, free: 6.598 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.522e-05/0.5397, allocations: 46.22 kB / 0.5278 GB, free: 6.547 MB / 346.7 MB Notification: Performance of pre-optimization done (n=27): time 1.313e-06/0.5397, allocations: 0 / 0.5278 GB, free: 6.547 MB / 346.7 MB Notification: Performance of matching and sorting (n=27): time 0.001448/0.5412, allocations: 0.5229 MB / 0.5284 GB, free: 6.172 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.624e-05/0.5412, allocations: 55.41 kB / 0.5284 GB, free: 6.105 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001647/0.5414, allocations: 192.5 kB / 0.5286 GB, free: 5.945 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.275e-05/0.5414, allocations: 25.7 kB / 0.5286 GB, free: 5.914 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.206e-05/0.5415, allocations: 138.1 kB / 0.5287 GB, free: 5.785 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.249e-05/0.5416, allocations: 88.91 kB / 0.5288 GB, free: 5.707 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.794e-05/0.5416, allocations: 0 / 0.5288 GB, free: 5.707 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001211/0.5417, allocations: 330.1 kB / 0.5291 GB, free: 5.383 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001929/0.5419, allocations: 149.2 kB / 0.5293 GB, free: 5.305 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001817/0.5421, allocations: 147.6 kB / 0.5294 GB, free: 5.23 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004559/0.5426, allocations: 181.9 kB / 0.5296 GB, free: 5.121 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.774e-06/0.5426, allocations: 0 / 0.5296 GB, free: 5.121 MB / 346.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001476/0.544, allocations: 0.5993 MB / 0.5302 GB, free: 4.691 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.099e-05/0.5441, allocations: 8 kB / 0.5302 GB, free: 4.684 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.488e-06/0.5441, allocations: 4 kB / 0.5302 GB, free: 4.68 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001091/0.5452, allocations: 236.8 kB / 0.5304 GB, free: 4.5 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001964/0.5454, allocations: 39.97 kB / 0.5305 GB, free: 4.461 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003153/0.5485, allocations: 2.334 MB / 0.5327 GB, free: 2.535 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002267/0.5488, allocations: 19.69 kB / 0.5328 GB, free: 2.516 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.952e-05/0.5488, allocations: 6.875 kB / 0.5328 GB, free: 2.512 MB / 346.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: load.terminal.i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real 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 (24): * Single equations (assignments): 23 * 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 9} Notification: Performance of prepare postOptimizeDAE: time 0.0001362/0.549, allocations: 116.9 kB / 0.5329 GB, free: 2.391 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.994e-05/0.549, allocations: 23.72 kB / 0.5329 GB, free: 2.367 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001463/0.5505, allocations: 0.5854 MB / 0.5335 GB, free: 1.949 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.906e-06/0.5505, allocations: 0 / 0.5335 GB, free: 1.949 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.082e-06/0.5505, allocations: 0 / 0.5335 GB, free: 1.949 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.148e-06/0.5505, allocations: 4 kB / 0.5335 GB, free: 1.945 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003871/0.5509, allocations: 392.4 kB / 0.5339 GB, free: 1.625 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.551, allocations: 0 / 0.5339 GB, free: 1.625 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001151/0.5511, allocations: 31.92 kB / 0.5339 GB, free: 1.594 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009894/0.5521, allocations: 238.6 kB / 0.5341 GB, free: 1.414 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.099e-05/0.5521, allocations: 0 / 0.5341 GB, free: 1.414 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00303/0.5551, allocations: 2.341 MB / 0.5364 GB, free: 15.48 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.5552, allocations: 4 kB / 0.5364 GB, free: 15.47 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00138/0.5565, allocations: 0.6233 MB / 0.537 GB, free: 14.99 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001622/0.5582, allocations: 1.009 MB / 0.538 GB, free: 14.12 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.008e-05/0.5583, allocations: 107.9 kB / 0.5381 GB, free: 14 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.698e-05/0.5583, allocations: 3.984 kB / 0.5381 GB, free: 14 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002297/0.5586, allocations: 8 kB / 0.5381 GB, free: 13.99 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.854e-05/0.5586, allocations: 15.09 kB / 0.5381 GB, free: 13.98 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.482e-05/0.5586, allocations: 15.31 kB / 0.5381 GB, free: 13.96 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001243/0.5588, allocations: 151.2 kB / 0.5383 GB, free: 13.84 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009483/0.5597, allocations: 95.16 kB / 0.5384 GB, free: 13.75 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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 17 * 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 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001735/0.5599, allocations: 113.2 kB / 0.5385 GB, free: 13.64 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001061/0.561, allocations: 0.5072 MB / 0.539 GB, free: 13.27 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.561, allocations: 0 / 0.539 GB, free: 13.27 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007595/0.5618, allocations: 344.2 kB / 0.5393 GB, free: 13 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000239/0.562, allocations: 18.3 kB / 0.5393 GB, free: 12.99 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007447/0.5628, allocations: 339.2 kB / 0.5396 GB, free: 12.7 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000383/0.5631, allocations: 0.7674 MB / 0.5404 GB, free: 11.91 MB / 362.7 MB Notification: Performance of SimCode: time 2.81e-07/0.5632, allocations: 4 kB / 0.5404 GB, free: 11.91 MB / 362.7 MB (rm -f PowerSysPro_PowerSysPro.Examples.TwoSourcesTwoLinesOneLoad.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.TwoSourcesTwoLinesOneLoad.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.TwoSourcesTwoLinesOneLoad.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.TwoSourcesTwoLinesOneLoad.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Examples_TwoSourcesTwoLinesOneLoad_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Examples_TwoSourcesTwoLinesOneLoad.fmu > PowerSysPro_PowerSysPro.Examples.TwoSourcesTwoLinesOneLoad.pipe 2>&1)