Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_LoadAC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_LoadAC",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 3.2.2+maint.om/package.mo): time 0.001377/0.001377, allocations: 182.9 kB / 8.134 MB, free: 2.219 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.081/1.081, allocations: 194.2 MB / 202.8 MB, free: 8.746 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001662/0.001662, allocations: 122.5 kB / 247.7 MB, free: 6.328 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.159/0.159, allocations: 37.92 MB / 330.5 MB, free: 6.93 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1996/0.3587, allocations: 59.34 MB / 389.9 MB, free: 78.04 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09148/0.4502, allocations: 53.23 MB / 443.1 MB, free: 24.9 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2775/0.7277, allocations: 90.55 MB / 0.5212 GB, free: 10.17 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001978/0.728, allocations: 85.33 kB / 0.5212 GB, free: 10.16 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: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.02133/0.7493, allocations: 7.86 MB / 0.5289 GB, free: 6.891 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.651e-05/0.7494, allocations: 8.781 kB / 0.5289 GB, free: 6.891 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001458/0.7495, allocations: 38.78 kB / 0.529 GB, free: 6.871 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001753/0.7513, allocations: 0.7269 MB / 0.5297 GB, free: 6.457 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.387e-05/0.7513, allocations: 8.812 kB / 0.5297 GB, free: 6.457 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.47e-05/0.7514, allocations: 14.69 kB / 0.5297 GB, free: 6.457 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004303/0.7518, allocations: 237 kB / 0.5299 GB, free: 6.422 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005174/0.7523, allocations: 322.7 kB / 0.5302 GB, free: 6.262 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.402e-05/0.7524, allocations: 1.219 kB / 0.5302 GB, free: 6.262 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.939e-05/0.7524, allocations: 5.266 kB / 0.5302 GB, free: 6.258 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.229e-05/0.7524, allocations: 10.44 kB / 0.5302 GB, free: 6.254 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001506/0.7539, allocations: 1.388 MB / 0.5316 GB, free: 5.188 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002091/0.7542, allocations: 139 kB / 0.5317 GB, free: 5.129 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001111/0.7543, allocations: 79.31 kB / 0.5318 GB, free: 5.102 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.821e-05/0.7543, allocations: 6.359 kB / 0.5318 GB, free: 5.102 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.912e-05/0.7543, allocations: 38.84 kB / 0.5319 GB, free: 5.059 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 2.034e-06/0.7543, allocations: 0 / 0.5319 GB, free: 5.059 MB / 346.7 MB Notification: Performance of matching and sorting (n=16): time 0.0009001/0.7552, allocations: 0.5928 MB / 0.5324 GB, free: 4.656 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.81e-05/0.7553, allocations: 82.7 kB / 0.5325 GB, free: 4.559 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000292/0.7556, allocations: 255.8 kB / 0.5328 GB, free: 4.434 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.818e-05/0.7556, allocations: 25.7 kB / 0.5328 GB, free: 4.402 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.187e-05/0.7557, allocations: 185.7 kB / 0.533 GB, free: 4.25 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.576e-05/0.7558, allocations: 53.7 kB / 0.533 GB, free: 4.211 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.079e-05/0.7558, allocations: 0 / 0.533 GB, free: 4.211 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 7.896e-05/0.7559, allocations: 337.4 kB / 0.5333 GB, free: 3.891 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001125/0.756, allocations: 63.81 kB / 0.5334 GB, free: 3.883 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001485/0.7561, allocations: 156.5 kB / 0.5335 GB, free: 3.75 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001393/0.7563, allocations: 89.91 kB / 0.5336 GB, free: 3.727 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.7563, allocations: 1.375 kB / 0.5336 GB, free: 3.727 MB / 346.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004147/0.7567, allocations: 263.1 kB / 0.5339 GB, free: 3.625 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.507e-05/0.7567, allocations: 4.5 kB / 0.5339 GB, free: 3.625 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.117e-06/0.7568, allocations: 8.375 kB / 0.5339 GB, free: 3.621 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.927e-05/0.7568, allocations: 4.469 kB / 0.5339 GB, free: 3.621 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002847/0.7571, allocations: 58.84 kB / 0.5339 GB, free: 3.609 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.318e-05/0.7571, allocations: 13.56 kB / 0.534 GB, free: 3.602 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001921/0.7573, allocations: 9.297 kB / 0.534 GB, free: 3.598 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.252e-05/0.7573, allocations: 12.94 kB / 0.534 GB, free: 3.594 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 29 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.443e-05/0.7574, allocations: 111.7 kB / 0.5341 GB, free: 3.484 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.85e-05/0.7575, allocations: 27.84 kB / 0.5341 GB, free: 3.469 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003487/0.7578, allocations: 215.1 kB / 0.5343 GB, free: 3.391 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.418e-06/0.7578, allocations: 2.875 kB / 0.5343 GB, free: 3.391 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.139e-06/0.7578, allocations: 4 kB / 0.5343 GB, free: 3.387 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.08e-06/0.7578, allocations: 1.406 kB / 0.5343 GB, free: 3.387 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006313/0.7585, allocations: 0.5711 MB / 0.5349 GB, free: 2.938 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.7585, allocations: 0 / 0.5349 GB, free: 2.938 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002066/0.7587, allocations: 47.78 kB / 0.5349 GB, free: 2.895 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.947e-06/0.7587, allocations: 0 / 0.5349 GB, free: 2.895 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.567e-05/0.7587, allocations: 0 / 0.5349 GB, free: 2.895 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.489e-06/0.7588, allocations: 8 kB / 0.5349 GB, free: 2.887 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.7588, allocations: 0 / 0.5349 GB, free: 2.887 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004058/0.7592, allocations: 445 kB / 0.5354 GB, free: 2.492 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0005282/0.7597, allocations: 0.9072 MB / 0.5362 GB, free: 1.66 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.451e-05/0.7598, allocations: 104.7 kB / 0.5363 GB, free: 1.539 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.695e-05/0.7598, allocations: 0 / 0.5363 GB, free: 1.539 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001681/0.76, allocations: 4 kB / 0.5364 GB, free: 1.535 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.732e-05/0.76, allocations: 15.36 kB / 0.5364 GB, free: 1.523 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.238e-05/0.7601, allocations: 8.062 kB / 0.5364 GB, free: 1.516 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.0001377/0.7602, allocations: 201.1 kB / 0.5366 GB, free: 1.355 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0009054/0.7611, allocations: 59.12 kB / 0.5366 GB, free: 1.301 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (zLoadAC.psi) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001175/0.7612, allocations: 107.2 kB / 0.5367 GB, free: 1.184 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002457/0.7615, allocations: 178.5 kB / 0.5369 GB, free: 1.051 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.534e-06/0.7615, allocations: 4.875 kB / 0.5369 GB, free: 1.047 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001003/0.7616, allocations: 89.41 kB / 0.537 GB, free: 0.9805 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003924/0.762, allocations: 55.56 kB / 0.537 GB, free: 0.9414 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000794/0.7628, allocations: 470.2 kB / 0.5375 GB, free: 0.4961 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003841/0.7632, allocations: 0.8436 MB / 0.5383 GB, free: 15.63 MB / 362.7 MB Notification: Performance of SimCode: time 2.81e-07/0.7632, allocations: 0 / 0.5383 GB, free: 15.63 MB / 362.7 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_LoadAC_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_LoadAC.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.pipe 2>&1)