Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Source.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.Source,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Source",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Source,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Source",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.001056/0.001056, allocations: 186.3 kB / 8.136 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.077/1.077, allocations: 194.2 MB / 202.8 MB, free: 8.664 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.001691/0.001691, allocations: 127.5 kB / 247.7 MB, free: 6.367 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1592/0.1592, allocations: 37.92 MB / 330.6 MB, free: 6.906 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1871/0.3464, allocations: 59.34 MB / 389.9 MB, free: 78.03 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07958/0.426, allocations: 53.22 MB / 443.1 MB, free: 24.9 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.228/0.654, allocations: 88.4 MB / 0.5191 GB, free: 10.89 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002129/0.6543, allocations: 85.14 kB / 0.5191 GB, free: 10.88 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0157/0.67, allocations: 6.276 MB / 0.5253 GB, free: 8.227 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.394e-05/0.67, allocations: 8.875 kB / 0.5253 GB, free: 8.227 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.038e-05/0.6701, allocations: 29.12 kB / 0.5253 GB, free: 8.211 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001637/0.6717, allocations: 0.7554 MB / 0.526 GB, free: 7.793 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.685e-05/0.6718, allocations: 6.625 kB / 0.526 GB, free: 7.793 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.663e-05/0.6718, allocations: 11.41 kB / 0.5261 GB, free: 7.793 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002486/0.6721, allocations: 142.7 kB / 0.5262 GB, free: 7.777 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002745/0.6723, allocations: 240.5 kB / 0.5264 GB, free: 7.641 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.097e-06/0.6723, allocations: 0 / 0.5264 GB, free: 7.641 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.874e-05/0.6724, allocations: 5.453 kB / 0.5264 GB, free: 7.637 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.884e-06/0.6724, allocations: 5.438 kB / 0.5264 GB, free: 7.637 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008845/0.6733, allocations: 1.123 MB / 0.5275 GB, free: 6.684 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.469e-05/0.6734, allocations: 75.3 kB / 0.5276 GB, free: 6.625 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.895e-05/0.6734, allocations: 27.94 kB / 0.5276 GB, free: 6.609 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.159e-05/0.6734, allocations: 2.156 kB / 0.5276 GB, free: 6.609 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.769e-05/0.6735, allocations: 35.75 kB / 0.5277 GB, free: 6.566 MB / 346.7 MB Notification: Performance of pre-optimization done (n=7): time 1.192e-06/0.6735, allocations: 0 / 0.5277 GB, free: 6.566 MB / 346.7 MB Notification: Performance of matching and sorting (n=8): time 0.0004474/0.6739, allocations: 378.1 kB / 0.528 GB, free: 6.234 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.955e-05/0.674, allocations: 78.17 kB / 0.5281 GB, free: 6.141 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001486/0.6741, allocations: 197.9 kB / 0.5283 GB, free: 6.023 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.484e-06/0.6741, allocations: 25.7 kB / 0.5283 GB, free: 5.992 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.802e-05/0.6742, allocations: 166 kB / 0.5285 GB, free: 5.852 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.714e-05/0.6742, allocations: 37.7 kB / 0.5285 GB, free: 5.824 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.019e-06/0.6742, allocations: 0 / 0.5285 GB, free: 5.824 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.433e-05/0.6743, allocations: 331.6 kB / 0.5288 GB, free: 5.504 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.067e-05/0.6743, allocations: 20.53 kB / 0.5288 GB, free: 5.504 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.445e-05/0.6744, allocations: 123 kB / 0.529 GB, free: 5.371 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.282e-05/0.6744, allocations: 42.14 kB / 0.529 GB, free: 5.359 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.6745, allocations: 2.719 kB / 0.529 GB, free: 5.359 MB / 346.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002016/0.6747, allocations: 152.7 kB / 0.5291 GB, free: 5.289 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.183e-05/0.6747, allocations: 9.359 kB / 0.5292 GB, free: 5.285 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.941e-06/0.6747, allocations: 3.188 kB / 0.5292 GB, free: 5.285 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.266e-05/0.6747, allocations: 6 kB / 0.5292 GB, free: 5.285 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001689/0.6749, allocations: 39.83 kB / 0.5292 GB, free: 5.277 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.378e-06/0.6749, allocations: 4.812 kB / 0.5292 GB, free: 5.277 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001015/0.675, allocations: 6.656 kB / 0.5292 GB, free: 5.273 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.255e-05/0.675, allocations: 17.47 kB / 0.5292 GB, free: 5.27 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 (22): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 4.422e-05/0.6751, allocations: 114.4 kB / 0.5293 GB, free: 5.152 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.973e-05/0.6751, allocations: 21.59 kB / 0.5294 GB, free: 5.141 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001279/0.6753, allocations: 87.36 kB / 0.5294 GB, free: 5.094 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.324e-06/0.6753, allocations: 1.531 kB / 0.5294 GB, free: 5.094 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.928e-06/0.6753, allocations: 1.656 kB / 0.5294 GB, free: 5.094 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.496e-06/0.6753, allocations: 0 / 0.5294 GB, free: 5.094 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002981/0.6756, allocations: 375.2 kB / 0.5298 GB, free: 4.781 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/0.6756, allocations: 1.094 kB / 0.5298 GB, free: 4.781 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.835e-05/0.6757, allocations: 22.17 kB / 0.5298 GB, free: 4.773 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.975e-06/0.6757, allocations: 1.375 kB / 0.5298 GB, free: 4.773 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.706e-06/0.6757, allocations: 1.562 kB / 0.5298 GB, free: 4.773 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.715e-06/0.6757, allocations: 9.344 kB / 0.5298 GB, free: 4.766 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.764e-06/0.6757, allocations: 0 / 0.5298 GB, free: 4.766 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000168/0.6759, allocations: 238.4 kB / 0.5301 GB, free: 4.566 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002101/0.6761, allocations: 0.6272 MB / 0.5307 GB, free: 3.996 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.556e-05/0.6762, allocations: 98.58 kB / 0.5308 GB, free: 3.887 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.117e-05/0.6762, allocations: 5.141 kB / 0.5308 GB, free: 3.883 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.154e-05/0.6763, allocations: 1.062 kB / 0.5308 GB, free: 3.883 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.503e-05/0.6763, allocations: 5.188 kB / 0.5308 GB, free: 3.883 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.772e-06/0.6763, allocations: 3.438 kB / 0.5308 GB, free: 3.883 MB / 346.7 MB Notification: Performance of sort global known variables: time 9.245e-05/0.6764, allocations: 152.2 kB / 0.5309 GB, free: 3.793 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008579/0.6773, allocations: 40.16 kB / 0.531 GB, free: 3.789 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (ind.i) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 8 * 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 8.593e-05/0.6774, allocations: 98.45 kB / 0.5311 GB, free: 3.699 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001328/0.6775, allocations: 84.81 kB / 0.5311 GB, free: 3.68 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.6775, allocations: 0 / 0.5311 GB, free: 3.68 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 3.865e-05/0.6776, allocations: 27.98 kB / 0.5312 GB, free: 3.672 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003391/0.6779, allocations: 42.78 kB / 0.5312 GB, free: 3.664 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005612/0.6785, allocations: 319.4 kB / 0.5315 GB, free: 3.449 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002038/0.6787, allocations: 0.7939 MB / 0.5323 GB, free: 2.699 MB / 346.7 MB Notification: Performance of SimCode: time 2.8e-07/0.6787, allocations: 0 / 0.5323 GB, free: 2.699 MB / 346.7 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Source.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Source_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Source.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe 2>&1)