Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.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.Loads.Examples.VariableImpedance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Z_L.i.1.|Z_L.i.2.|Z_C.i.1.|Z_C.i.2.|Z_R.i.1.|Z_R.i.2.",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance") translateModel(Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Z_L.i.1.|Z_L.i.2.|Z_C.i.1.|Z_C.i.2.|Z_R.i.1.|Z_R.i.2.",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance") [: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.434/1.434, allocations: 249.4 MB / 256.7 MB, free: 6.98 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.001061/0.001061, allocations: 177.2 kB / 316 MB, free: 3.582 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.574/1.574, allocations: 205.2 MB / 0.5667 GB, free: 15.64 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.0009031/0.0009033, allocations: 93.06 kB / 0.671 GB, free: 4.777 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 8.476e-06/8.506e-06, allocations: 4 kB / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2158/0.2158, allocations: 106.3 MB / 0.8846 GB, free: 12.66 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6484/0.8642, allocations: 148.2 MB / 1.029 GB, free: 7.863 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002743/0.8646, allocations: 99.48 kB / 1.029 GB, free: 7.809 MB / 0.6511 GB Notification: Performance of FrontEnd: time 0.04896/0.9135, allocations: 19.99 MB / 1.049 GB, free: 7.152 MB / 0.6667 GB Notification: Performance of Transformations before backend: time 3.075e-05/0.9136, allocations: 11.94 kB / 1.049 GB, free: 7.141 MB / 0.6667 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.001194/0.9148, allocations: 0.645 MB / 1.05 GB, free: 6.48 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 5.039e-05/0.9149, allocations: 8.031 kB / 1.05 GB, free: 6.473 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001013/0.9159, allocations: 135.3 kB / 1.05 GB, free: 6.34 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007065/0.9166, allocations: 381.5 kB / 1.05 GB, free: 5.957 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.207e-05/0.9167, allocations: 12 kB / 1.05 GB, free: 5.945 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.035e-05/0.9167, allocations: 16 kB / 1.05 GB, free: 5.93 MB / 0.6667 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005495/0.9173, allocations: 296 kB / 1.05 GB, free: 5.738 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008421/0.9181, allocations: 0.5365 MB / 1.051 GB, free: 5.195 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.26e-05/0.9182, allocations: 11.92 kB / 1.051 GB, free: 5.184 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.133e-05/0.9182, allocations: 8 kB / 1.051 GB, free: 5.176 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.164e-05/0.9183, allocations: 35.55 kB / 1.051 GB, free: 5.145 MB / 0.6667 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003976/0.9223, allocations: 3.295 MB / 1.054 GB, free: 1.863 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006563/0.923, allocations: 292.5 kB / 1.054 GB, free: 1.645 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002749/0.9233, allocations: 157 kB / 1.055 GB, free: 1.535 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 3.715e-05/0.9233, allocations: 8 kB / 1.055 GB, free: 1.527 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.123e-05/0.9234, allocations: 37.69 kB / 1.055 GB, free: 1.484 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=26): time 3.647e-06/0.9234, allocations: 0 / 1.055 GB, free: 1.484 MB / 0.6667 GB Notification: Performance of matching and sorting (n=27): time 0.001302/0.9247, allocations: 0.5789 MB / 1.055 GB, free: 1 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.712e-05/0.9248, allocations: 54.33 kB / 1.055 GB, free: 0.9375 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002913/0.9251, allocations: 247.6 kB / 1.055 GB, free: 0.7227 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 3.401e-05/0.9251, allocations: 29.7 kB / 1.056 GB, free: 0.6875 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001196/0.9252, allocations: 212.9 kB / 1.056 GB, free: 0.4961 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 7.86e-05/0.9253, allocations: 92.78 kB / 1.056 GB, free: 424 kB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.539e-05/0.9253, allocations: 0 / 1.056 GB, free: 424 kB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.0001589/0.9255, allocations: 345 kB / 1.056 GB, free: 84 kB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00027/0.9258, allocations: 135 kB / 1.056 GB, free: 15.99 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002648/0.926, allocations: 255 kB / 1.057 GB, free: 15.74 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002233/0.9263, allocations: 164.7 kB / 1.057 GB, free: 15.63 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.368e-06/0.9263, allocations: 4 kB / 1.057 GB, free: 15.62 MB / 0.6823 GB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0007903/0.9271, allocations: 493.8 kB / 1.057 GB, free: 15.23 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.769e-05/0.9271, allocations: 4 kB / 1.057 GB, free: 15.22 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.035e-05/0.9271, allocations: 8 kB / 1.057 GB, free: 15.21 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000329/0.9275, allocations: 80.95 kB / 1.057 GB, free: 15.14 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003734/0.9279, allocations: 87.81 kB / 1.057 GB, free: 15.05 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.146e-05/0.9279, allocations: 7.938 kB / 1.057 GB, free: 15.05 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002754/0.9282, allocations: 23.98 kB / 1.057 GB, free: 15.02 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.059e-05/0.9282, allocations: 19.12 kB / 1.057 GB, free: 15.01 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (42): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 3 {(2,100.0%),(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000116/0.9283, allocations: 109.4 kB / 1.057 GB, free: 14.89 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.337e-05/0.9284, allocations: 39.53 kB / 1.058 GB, free: 14.86 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007422/0.9292, allocations: 427.4 kB / 1.058 GB, free: 14.53 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.774e-06/0.9292, allocations: 4 kB / 1.058 GB, free: 14.52 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.254e-06/0.9292, allocations: 0 / 1.058 GB, free: 14.52 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.58e-06/0.9292, allocations: 0 / 1.058 GB, free: 14.52 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001309/0.9305, allocations: 0.8837 MB / 1.059 GB, free: 13.75 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.9305, allocations: 4 kB / 1.059 GB, free: 13.74 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002598/0.9308, allocations: 51.53 kB / 1.059 GB, free: 13.7 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002473/0.9311, allocations: 81.27 kB / 1.059 GB, free: 13.62 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.884e-05/0.9311, allocations: 0 / 1.059 GB, free: 13.62 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.9311, allocations: 8.062 kB / 1.059 GB, free: 13.61 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.298e-06/0.9311, allocations: 3.984 kB / 1.059 GB, free: 13.61 MB / 0.6823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006852/0.9318, allocations: 0.5426 MB / 1.059 GB, free: 13.1 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002172/0.932, allocations: 136.2 kB / 1.06 GB, free: 12.96 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.449e-05/0.9321, allocations: 0 / 1.06 GB, free: 12.96 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002343/0.9323, allocations: 15.98 kB / 1.06 GB, free: 12.94 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.647e-05/0.9324, allocations: 23.59 kB / 1.06 GB, free: 12.92 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.764e-05/0.9324, allocations: 4 kB / 1.06 GB, free: 12.92 MB / 0.6823 GB Notification: Performance of sort global known variables: time 0.0001755/0.9326, allocations: 193.6 kB / 1.06 GB, free: 12.77 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0004336/0.9331, allocations: 91.92 kB / 1.06 GB, free: 12.68 MB / 0.6823 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 (25): * 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): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 3 {(2,100.0%),(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001624/0.9332, allocations: 99.19 kB / 1.06 GB, free: 12.57 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0007391/0.934, allocations: 0.5897 MB / 1.061 GB, free: 12.01 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.934, allocations: 0 / 1.061 GB, free: 12.01 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.000381/0.9344, allocations: 423.4 kB / 1.061 GB, free: 11.58 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006032/0.935, allocations: 104.8 kB / 1.061 GB, free: 11.5 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001065/0.9361, allocations: 0.5067 MB / 1.062 GB, free: 11.01 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005661/0.9366, allocations: 0.8661 MB / 1.062 GB, free: 10.12 MB / 0.6823 GB Notification: Performance of SimCode: time 4.51e-07/0.9366, allocations: 0 / 1.062 GB, free: 10.12 MB / 0.6823 GB Notification: Performance of Templates: time 0.009558/0.9462, allocations: 4.535 MB / 1.067 GB, free: 5.656 MB / 0.6823 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.makefile (rm -f Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.sim & ./Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance.csv","../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches