Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Line,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Line",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Line,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Line",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.3+maint.om/package.mo): time 0.001094/0.001094, allocations: 183.7 kB / 8.138 MB, free: 2.188 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.12/1.12, allocations: 205.2 MB / 213.7 MB, free: 13.91 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008508/0.0008509, allocations: 99.86 kB / 261.8 MB, free: 13.6 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1677/0.1677, allocations: 37.97 MB / 347.7 MB, free: 7.531 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1939/0.3616, allocations: 62.44 MB / 410.1 MB, free: 46.77 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08054/0.4421, allocations: 56.32 MB / 466.4 MB, free: 6.383 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2714/0.7136, allocations: 97.83 MB / 0.551 GB, free: 12.65 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002485/0.7138, allocations: 87.95 kB / 0.5511 GB, free: 12.57 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.03469/0.7486, allocations: 11.39 MB / 0.5622 GB, free: 1.031 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.673e-05/0.7486, allocations: 8 kB / 0.5622 GB, free: 1.023 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001709/0.7488, allocations: 55.34 kB / 0.5623 GB, free: 0.9688 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003584/0.7524, allocations: 1.26 MB / 0.5635 GB, free: 15.66 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.215e-05/0.7524, allocations: 8 kB / 0.5635 GB, free: 15.66 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001353/0.7526, allocations: 32 kB / 0.5636 GB, free: 15.62 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006775/0.7532, allocations: 425.3 kB / 0.564 GB, free: 15.21 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001039/0.7543, allocations: 0.7292 MB / 0.5647 GB, free: 14.45 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.288e-05/0.7543, allocations: 0 / 0.5647 GB, free: 14.45 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.074e-05/0.7544, allocations: 3.906 kB / 0.5647 GB, free: 14.45 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.564e-05/0.7544, allocations: 16 kB / 0.5647 GB, free: 14.43 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004026/0.7585, allocations: 2.64 MB / 0.5673 GB, free: 11.71 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007118/0.7592, allocations: 457.3 kB / 0.5677 GB, free: 11.25 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007032/0.7599, allocations: 442 kB / 0.5681 GB, free: 10.81 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.451e-05/0.7599, allocations: 4 kB / 0.5681 GB, free: 10.81 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.091e-05/0.76, allocations: 38.55 kB / 0.5682 GB, free: 10.76 MB / 410.7 MB Notification: Performance of pre-optimization done (n=32): time 2.324e-06/0.76, allocations: 0 / 0.5682 GB, free: 10.76 MB / 410.7 MB Notification: Performance of matching and sorting (n=33): time 0.007448/0.7674, allocations: 2.995 MB / 0.5711 GB, free: 7.699 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.127e-05/0.7675, allocations: 81.11 kB / 0.5712 GB, free: 7.602 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004063/0.7679, allocations: 309.9 kB / 0.5715 GB, free: 7.289 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 5.896e-05/0.768, allocations: 29.7 kB / 0.5715 GB, free: 7.254 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001409/0.7681, allocations: 196.2 kB / 0.5717 GB, free: 7.055 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001505/0.7683, allocations: 154 kB / 0.5718 GB, free: 6.902 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.976e-05/0.7684, allocations: 0 / 0.5718 GB, free: 6.902 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001641/0.7685, allocations: 362.8 kB / 0.5722 GB, free: 6.539 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005884/0.7691, allocations: 412.9 kB / 0.5726 GB, free: 6.137 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000665/0.7698, allocations: 0.5088 MB / 0.5731 GB, free: 5.586 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006438/0.7704, allocations: 465.4 kB / 0.5735 GB, free: 5.133 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.7705, allocations: 0 / 0.5735 GB, free: 5.133 MB / 410.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.003888/0.7744, allocations: 2.056 MB / 0.5755 GB, free: 3.062 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.964e-05/0.7744, allocations: 12.53 kB / 0.5755 GB, free: 3.051 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.364e-05/0.7744, allocations: 4 kB / 0.5755 GB, free: 3.047 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006162/0.7806, allocations: 2.655 MB / 0.5781 GB, free: 388 kB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004102/0.781, allocations: 83.89 kB / 0.5782 GB, free: 304 kB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.235e-05/0.781, allocations: 11.94 kB / 0.5782 GB, free: 292 kB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003737/0.7814, allocations: 20.22 kB / 0.5782 GB, free: 272 kB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001125/0.7815, allocations: 75.95 kB / 0.5783 GB, free: 196 kB / 410.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 (48): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(7,32.7%),(7,32.7%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001673/0.7817, allocations: 108.9 kB / 0.5784 GB, free: 80 kB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000127/0.7818, allocations: 43.44 kB / 0.5785 GB, free: 36 kB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005936/0.7878, allocations: 2.137 MB / 0.5805 GB, free: 13.88 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.325e-05/0.7878, allocations: 8 kB / 0.5805 GB, free: 13.88 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.997e-06/0.7878, allocations: 7.938 kB / 0.5806 GB, free: 13.87 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.888e-06/0.7879, allocations: 0 / 0.5806 GB, free: 13.87 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007292/0.7952, allocations: 2.846 MB / 0.5833 GB, free: 10.96 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.941e-06/0.7952, allocations: 0 / 0.5833 GB, free: 10.96 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002451/0.7955, allocations: 39.92 kB / 0.5834 GB, free: 10.93 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009794/0.8053, allocations: 2.964 MB / 0.5863 GB, free: 7.949 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002043/0.8055, allocations: 103.9 kB / 0.5864 GB, free: 7.848 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01115/0.8167, allocations: 7.978 MB / 0.5942 GB, free: 15.64 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.14e-06/0.8167, allocations: 4 kB / 0.5942 GB, free: 15.63 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006493/0.8232, allocations: 2.532 MB / 0.5966 GB, free: 13.06 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.006937/0.8302, allocations: 3.287 MB / 0.5998 GB, free: 9.727 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002182/0.8305, allocations: 116.5 kB / 0.6 GB, free: 9.594 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002287/0.8307, allocations: 83.94 kB / 0.6 GB, free: 9.512 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003553/0.8311, allocations: 15.97 kB / 0.6 GB, free: 9.496 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001038/0.8312, allocations: 31.94 kB / 0.6001 GB, free: 9.465 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001108/0.8313, allocations: 71.84 kB / 0.6001 GB, free: 9.395 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.0003309/0.8316, allocations: 236.6 kB / 0.6004 GB, free: 9.164 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001396/0.833, allocations: 167.9 kB / 0.6005 GB, free: 9 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 14 (line.v[1,1],line.v[1,2],line.v[1,3],line.v[2,1],line.v[2,2],line.v[2,3],line.i[1,1],line.i[1,2],line.i[1,3],line.i[1,4],line.i[2,1],line.i[2,2],line.i[2,3],line.i[2,4]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {8,6} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003205/0.8334, allocations: 149.6 kB / 0.6007 GB, free: 8.848 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001842/0.8352, allocations: 1.044 MB / 0.6017 GB, free: 7.762 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.918e-06/0.8352, allocations: 3.938 kB / 0.6017 GB, free: 7.758 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001946/0.8372, allocations: 0.875 MB / 0.6026 GB, free: 6.855 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006142/0.8378, allocations: 93.48 kB / 0.6026 GB, free: 6.766 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003745/0.8416, allocations: 1.995 MB / 0.6046 GB, free: 4.734 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000803/0.8424, allocations: 0.9913 MB / 0.6056 GB, free: 3.715 MB / 442.7 MB Notification: Performance of SimCode: time 2.054e-06/0.8424, allocations: 0 / 0.6056 GB, free: 3.715 MB / 442.7 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Line_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Line.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe 2>&1)