Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) 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) 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) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid,fileNamePrefix="Buildings_8_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACSimpleGrid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid,fileNamePrefix="Buildings_8_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACSimpleGrid",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/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.381/1.381, allocations: 289.8 MB / 297.1 MB, free: 6.656 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001046/0.001046, allocations: 184.2 kB / 366.3 MB, free: 1.973 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.057/1.057, allocations: 205.1 MB / 0.6256 GB, free: 5.84 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008195/0.0008196, allocations: 90.28 kB / 0.7395 GB, free: 39.66 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2036/0.2045, allocations: 122.4 MB / 0.8591 GB, free: 13.27 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4262/0.6307, allocations: 116.3 MB / 0.9727 GB, free: 68.21 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1707/0.8014, allocations: 182.1 MB / 1.15 GB, free: 14.31 MB / 0.7605 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002376/0.8017, allocations: 99.92 kB / 1.151 GB, free: 14.21 MB / 0.7605 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.06453/0.8662, allocations: 28.81 MB / 1.179 GB, free: 1.086 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.577e-05/0.8663, allocations: 8 kB / 1.179 GB, free: 1.078 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002322/0.8686, allocations: 430.8 kB / 1.179 GB, free: 0.6562 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007264/0.8694, allocations: 475.2 kB / 1.18 GB, free: 156 kB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.592e-05/0.8694, allocations: 12 kB / 1.18 GB, free: 144 kB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.186e-05/0.8695, allocations: 19.91 kB / 1.18 GB, free: 124 kB / 0.7761 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000734/0.8702, allocations: 489.1 kB / 1.18 GB, free: 15.64 MB / 0.7917 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007605/0.871, allocations: 0.56 MB / 1.181 GB, free: 15.05 MB / 0.7917 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.642e-05/0.871, allocations: 0 / 1.181 GB, free: 15.05 MB / 0.7917 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.674e-05/0.8711, allocations: 4 kB / 1.181 GB, free: 15.05 MB / 0.7917 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.028e-05/0.8711, allocations: 20.64 kB / 1.181 GB, free: 15.03 MB / 0.7917 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003472/0.8746, allocations: 2.758 MB / 1.183 GB, free: 12.06 MB / 0.7917 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006211/0.8752, allocations: 326.4 kB / 1.184 GB, free: 11.73 MB / 0.7917 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002102/0.8754, allocations: 164.8 kB / 1.184 GB, free: 11.57 MB / 0.7917 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001027/0.8755, allocations: 93.03 kB / 1.184 GB, free: 11.46 MB / 0.7917 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.308e-05/0.8756, allocations: 34.56 kB / 1.184 GB, free: 11.42 MB / 0.7917 GB Notification: Performance of pre-optimization done (n=16): time 1.303e-06/0.8756, allocations: 0 / 1.184 GB, free: 11.42 MB / 0.7917 GB Notification: Performance of matching and sorting (n=24): time 0.004237/0.8798, allocations: 1.488 MB / 1.185 GB, free: 9.914 MB / 0.7917 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.814e-05/0.8799, allocations: 85.11 kB / 1.185 GB, free: 9.812 MB / 0.7917 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003402/0.8802, allocations: 331.4 kB / 1.186 GB, free: 9.48 MB / 0.7917 GB Notification: Performance of collectPreVariables (initialization): time 3.899e-05/0.8803, allocations: 29.7 kB / 1.186 GB, free: 9.445 MB / 0.7917 GB Notification: Performance of collectInitialEqns (initialization): time 9.737e-05/0.8804, allocations: 203.6 kB / 1.186 GB, free: 9.242 MB / 0.7917 GB Notification: Performance of collectInitialBindings (initialization): time 6.798e-05/0.8805, allocations: 74.91 kB / 1.186 GB, free: 9.168 MB / 0.7917 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.112e-05/0.8805, allocations: 0 / 1.186 GB, free: 9.168 MB / 0.7917 GB Notification: Performance of setup shared object (initialization): time 0.0001055/0.8806, allocations: 346.7 kB / 1.186 GB, free: 8.82 MB / 0.7917 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003107/0.8809, allocations: 255.8 kB / 1.187 GB, free: 8.57 MB / 0.7917 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003501/0.8813, allocations: 333.3 kB / 1.187 GB, free: 8.211 MB / 0.7917 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005023/0.8818, allocations: 301.5 kB / 1.187 GB, free: 7.918 MB / 0.7917 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.162e-06/0.8818, allocations: 0 / 1.187 GB, free: 7.918 MB / 0.7917 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.002719/0.8845, allocations: 1.01 MB / 1.188 GB, free: 6.898 MB / 0.7917 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002283/0.8848, allocations: 0.7902 MB / 1.189 GB, free: 6.047 MB / 0.7917 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.072e-06/0.8848, allocations: 0 / 1.189 GB, free: 6.047 MB / 0.7917 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002097/0.8869, allocations: 413.2 kB / 1.189 GB, free: 5.637 MB / 0.7917 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005898/0.8875, allocations: 115.8 kB / 1.19 GB, free: 5.523 MB / 0.7917 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003461/0.8909, allocations: 2.948 MB / 1.192 GB, free: 2.43 MB / 0.7917 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006913/0.8917, allocations: 79.94 kB / 1.192 GB, free: 2.352 MB / 0.7917 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.241e-05/0.8917, allocations: 12.06 kB / 1.192 GB, free: 2.34 MB / 0.7917 GB Notification: Performance of prepare postOptimizeDAE: time 6.192e-06/0.8917, allocations: 8 kB / 1.192 GB, free: 2.332 MB / 0.7917 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008021/0.8925, allocations: 487.7 kB / 1.193 GB, free: 1.855 MB / 0.7917 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.805e-06/0.8925, allocations: 0 / 1.193 GB, free: 1.855 MB / 0.7917 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.899e-06/0.8925, allocations: 4 kB / 1.193 GB, free: 1.852 MB / 0.7917 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006803/0.8932, allocations: 136 kB / 1.193 GB, free: 1.719 MB / 0.7917 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.689e-06/0.8932, allocations: 5.953 kB / 1.193 GB, free: 1.715 MB / 0.7917 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005557/0.8938, allocations: 75.91 kB / 1.193 GB, free: 1.641 MB / 0.7917 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.3e-05/0.8939, allocations: 12 kB / 1.193 GB, free: 1.629 MB / 0.7917 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 27 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 2} * Non-linear torn systems: 1 {2 2} Notification: Performance of prepare postOptimizeDAE: time 0.0001367/0.894, allocations: 116.8 kB / 1.193 GB, free: 1.508 MB / 0.7917 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.902e-05/0.8941, allocations: 31.62 kB / 1.193 GB, free: 1.477 MB / 0.7917 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002954/0.897, allocations: 1.068 MB / 1.194 GB, free: 408 kB / 0.7917 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.741e-06/0.8971, allocations: 7.906 kB / 1.194 GB, free: 400 kB / 0.7917 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.8971, allocations: 0 / 1.194 GB, free: 400 kB / 0.7917 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.8971, allocations: 3.938 kB / 1.194 GB, free: 396 kB / 0.7917 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003602/0.9007, allocations: 1.687 MB / 1.196 GB, free: 14.64 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.9007, allocations: 0 / 1.196 GB, free: 14.64 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003885/0.9011, allocations: 76.02 kB / 1.196 GB, free: 14.57 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002356/0.9035, allocations: 0.5479 MB / 1.197 GB, free: 14.01 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.159e-05/0.9035, allocations: 8 kB / 1.197 GB, free: 14 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004734/0.9082, allocations: 4.046 MB / 1.201 GB, free: 9.719 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.408e-06/0.9083, allocations: 3.938 kB / 1.201 GB, free: 9.715 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002739/0.911, allocations: 1.108 MB / 1.202 GB, free: 8.559 MB / 0.8073 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002892/0.9139, allocations: 1.504 MB / 1.203 GB, free: 7 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002334/0.9142, allocations: 168.6 kB / 1.203 GB, free: 6.816 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.695e-05/0.9142, allocations: 3.984 kB / 1.203 GB, free: 6.812 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006672/0.9149, allocations: 79.89 kB / 1.203 GB, free: 6.734 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.937e-05/0.915, allocations: 15.98 kB / 1.203 GB, free: 6.719 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.369e-05/0.915, allocations: 11.98 kB / 1.203 GB, free: 6.707 MB / 0.8073 GB Notification: Performance of sort global known variables: time 0.0002704/0.9153, allocations: 267.1 kB / 1.204 GB, free: 6.449 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.001951/0.9173, allocations: 211.8 kB / 1.204 GB, free: 6.242 MB / 0.8073 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 2} * Non-linear torn systems: 1 {2 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002707/0.9175, allocations: 159.1 kB / 1.204 GB, free: 6.078 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.001519/0.9191, allocations: 0.9681 MB / 1.205 GB, free: 5.098 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.9191, allocations: 0 / 1.205 GB, free: 5.098 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 0.0007675/0.9199, allocations: 0.5389 MB / 1.205 GB, free: 4.539 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004868/0.9204, allocations: 98.53 kB / 1.206 GB, free: 4.445 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001509/0.9219, allocations: 0.7629 MB / 1.206 GB, free: 3.656 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005589/0.9224, allocations: 0.9508 MB / 1.207 GB, free: 2.68 MB / 0.8073 GB Notification: Performance of SimCode: time 2.81e-07/0.9225, allocations: 0 / 1.207 GB, free: 2.68 MB / 0.8073 GB (rm -f Buildings_8_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe ; mkfifo Buildings_8_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe ; head -c 1048576 < Buildings_8_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe >> ../files/Buildings_8_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACSimpleGrid_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACSimpleGrid.fmu > Buildings_8_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe 2>&1)