Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.v.1.|load.v.2.|E.terminal.v.1.|E.terminal.v.2.",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid") translateModel(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.v.1.|load.v.2.|E.terminal.v.1.|E.terminal.v.2.",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid") [: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 7.0.3-maint.7.0.x/package.mo): time 1.369/1.369, allocations: 249.4 MB / 256.7 MB, free: 6.969 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001172/0.001172, allocations: 177.3 kB / 316 MB, free: 3.605 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.416/1.416, allocations: 205.1 MB / 0.5667 GB, free: 15.67 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008665/0.0008665, allocations: 90.16 kB / 0.671 GB, free: 4.793 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 6.813e-06/6.833e-06, allocations: 0 / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.165/0.165, allocations: 106.3 MB / 0.8846 GB, free: 12.68 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5302/0.6953, allocations: 175.8 MB / 1.056 GB, free: 13.5 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002734/0.6956, allocations: 99.44 kB / 1.056 GB, free: 13.45 MB / 0.6823 GB Notification: Performance of FrontEnd: time 0.06737/0.7629, allocations: 28.13 MB / 1.084 GB, free: 6.164 MB / 0.698 GB Notification: Performance of Transformations before backend: time 3.518e-05/0.763, allocations: 12 kB / 1.084 GB, free: 6.152 MB / 0.698 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.001037/0.7641, allocations: 0.6811 MB / 1.085 GB, free: 5.449 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 3.698e-05/0.7641, allocations: 8.031 kB / 1.085 GB, free: 5.441 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00249/0.7666, allocations: 437.4 kB / 1.085 GB, free: 5.016 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007351/0.7673, allocations: 468.4 kB / 1.085 GB, free: 4.594 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.975e-05/0.7674, allocations: 16 kB / 1.085 GB, free: 4.578 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.293e-05/0.7675, allocations: 19.98 kB / 1.085 GB, free: 4.559 MB / 0.698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006774/0.7681, allocations: 484.2 kB / 1.086 GB, free: 4.234 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007322/0.7689, allocations: 0.5543 MB / 1.086 GB, free: 3.785 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.927e-05/0.7689, allocations: 11.92 kB / 1.086 GB, free: 3.773 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.571e-05/0.769, allocations: 0 / 1.086 GB, free: 3.773 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.195e-05/0.769, allocations: 28.55 kB / 1.086 GB, free: 3.746 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003627/0.7726, allocations: 2.745 MB / 1.089 GB, free: 1.168 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006351/0.7733, allocations: 321.6 kB / 1.089 GB, free: 0.9258 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002006/0.7735, allocations: 169.1 kB / 1.09 GB, free: 0.8125 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001254/0.7736, allocations: 97.08 kB / 1.09 GB, free: 0.6992 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.197e-05/0.7737, allocations: 30.56 kB / 1.09 GB, free: 0.6602 MB / 0.698 GB Notification: Performance of pre-optimization done (n=16): time 1.623e-06/0.7737, allocations: 3.938 kB / 1.09 GB, free: 0.6562 MB / 0.698 GB Notification: Performance of matching and sorting (n=24): time 0.004217/0.7779, allocations: 1.478 MB / 1.091 GB, free: 15.46 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.372e-05/0.778, allocations: 81.11 kB / 1.091 GB, free: 15.37 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000331/0.7783, allocations: 337 kB / 1.092 GB, free: 15.1 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 4.42e-05/0.7783, allocations: 25.7 kB / 1.092 GB, free: 15.07 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 9.766e-05/0.7785, allocations: 206.5 kB / 1.092 GB, free: 14.88 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 7.45e-05/0.7785, allocations: 79.69 kB / 1.092 GB, free: 14.81 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.039e-05/0.7786, allocations: 0 / 1.092 GB, free: 14.81 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001163/0.7787, allocations: 340.8 kB / 1.092 GB, free: 14.48 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003079/0.779, allocations: 249.9 kB / 1.092 GB, free: 14.33 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003519/0.7794, allocations: 329 kB / 1.093 GB, free: 14.07 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000491/0.7799, allocations: 310.3 kB / 1.093 GB, free: 13.86 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.282e-06/0.7799, allocations: 0 / 1.093 GB, free: 13.86 MB / 0.7136 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.002763/0.7826, allocations: 1.005 MB / 1.094 GB, free: 13.06 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003008/0.783, allocations: 0.7992 MB / 1.095 GB, free: 12.22 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.783, allocations: 0 / 1.095 GB, free: 12.22 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002139/0.7851, allocations: 416.6 kB / 1.095 GB, free: 11.86 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006247/0.7858, allocations: 115.3 kB / 1.095 GB, free: 11.75 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00349/0.7893, allocations: 2.944 MB / 1.098 GB, free: 9.023 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007225/0.79, allocations: 84 kB / 1.098 GB, free: 8.941 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.804e-05/0.79, allocations: 15.11 kB / 1.098 GB, free: 8.93 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 7.404e-06/0.7901, allocations: 7.938 kB / 1.098 GB, free: 8.922 MB / 0.7136 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008045/0.7909, allocations: 486.4 kB / 1.099 GB, free: 8.578 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.306e-06/0.7909, allocations: 4 kB / 1.099 GB, free: 8.574 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.07e-06/0.7909, allocations: 4 kB / 1.099 GB, free: 8.57 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007334/0.7916, allocations: 135.6 kB / 1.099 GB, free: 8.441 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.178e-06/0.7917, allocations: 4 kB / 1.099 GB, free: 8.438 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005377/0.7922, allocations: 71.91 kB / 1.099 GB, free: 8.367 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.651e-05/0.7922, allocations: 15.92 kB / 1.099 GB, free: 8.352 MB / 0.7136 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.0001399/0.7924, allocations: 112.7 kB / 1.099 GB, free: 8.238 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.112e-05/0.7925, allocations: 31.62 kB / 1.099 GB, free: 8.207 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003002/0.7955, allocations: 1.07 MB / 1.1 GB, free: 7.348 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.091e-06/0.7955, allocations: 7.984 kB / 1.1 GB, free: 7.34 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.496e-06/0.7955, allocations: 0 / 1.1 GB, free: 7.34 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.559e-06/0.7955, allocations: 0 / 1.1 GB, free: 7.34 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003638/0.7992, allocations: 1.672 MB / 1.102 GB, free: 5.953 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.542e-06/0.7992, allocations: 7.906 kB / 1.102 GB, free: 5.945 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000397/0.7996, allocations: 87.83 kB / 1.102 GB, free: 5.863 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002409/0.802, allocations: 0.5462 MB / 1.102 GB, free: 5.359 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.249e-05/0.8021, allocations: 4 kB / 1.102 GB, free: 5.355 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004765/0.8068, allocations: 4.046 MB / 1.106 GB, free: 1.586 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.8068, allocations: 3.938 kB / 1.106 GB, free: 1.582 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002765/0.8096, allocations: 1.118 MB / 1.108 GB, free: 0.6016 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002732/0.8099, allocations: 168 kB / 1.108 GB, free: 456 kB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.491e-05/0.81, allocations: 0 / 1.108 GB, free: 456 kB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006631/0.8107, allocations: 83.88 kB / 1.108 GB, free: 372 kB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.627e-05/0.8107, allocations: 27.69 kB / 1.108 GB, free: 348 kB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.332e-05/0.8108, allocations: 8 kB / 1.108 GB, free: 340 kB / 0.7136 GB Notification: Performance of sort global known variables: time 0.0002803/0.8111, allocations: 267.8 kB / 1.108 GB, free: 136 kB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0007723/0.8118, allocations: 195.9 kB / 1.108 GB, free: 15.94 MB / 0.7292 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.0002599/0.8121, allocations: 151.1 kB / 1.108 GB, free: 15.79 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.001519/0.8136, allocations: 0.9718 MB / 1.109 GB, free: 15.07 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.8137, allocations: 0.625 kB / 1.109 GB, free: 15.07 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0007592/0.8144, allocations: 0.534 MB / 1.11 GB, free: 14.61 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004901/0.8149, allocations: 97.44 kB / 1.11 GB, free: 14.54 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00151/0.8164, allocations: 0.7626 MB / 1.111 GB, free: 13.87 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006319/0.8171, allocations: 0.9558 MB / 1.112 GB, free: 12.92 MB / 0.7292 GB Notification: Performance of SimCode: time 7.21e-07/0.8171, allocations: 0 / 1.112 GB, free: 12.92 MB / 0.7292 GB Notification: Performance of Templates: time 0.01774/0.8348, allocations: 12.09 MB / 1.123 GB, free: 0.8945 MB / 0.7292 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.makefile (rm -f Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.sim & ./Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACSimpleGrid.csv","../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches