Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_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_latest_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 10.0.0-master/package.mo): time 1.704/1.704, allocations: 390.4 MB / 397.7 MB, free: 11.27 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009007/0.0009006, allocations: 177.3 kB / 490.8 MB, free: 1.926 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.059/1.059, allocations: 221.3 MB / 0.7863 GB, free: 13.66 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008066/0.0008067, allocations: 92.66 kB / 0.9264 GB, free: 14.19 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 5.42e-06/5.45e-06, allocations: 0 / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1663/0.1664, allocations: 143 MB / 1.212 GB, free: 40.07 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4539/0.6203, allocations: 165.8 MB / 1.373 GB, free: 17.5 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002143/0.6206, allocations: 92.78 kB / 1.374 GB, free: 17.5 MB / 0.823 GB Notification: Performance of FrontEnd: time 0.04342/0.664, allocations: 21.86 MB / 1.395 GB, free: 10.76 MB / 0.823 GB Notification: Performance of Transformations before backend: time 2.161e-05/0.664, allocations: 15.36 kB / 1.395 GB, free: 10.75 MB / 0.823 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.0007859/0.6648, allocations: 0.6371 MB / 1.396 GB, free: 26.23 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.058e-05/0.6649, allocations: 9.438 kB / 1.396 GB, free: 26.23 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000797/0.6657, allocations: 137.5 kB / 1.396 GB, free: 26.16 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004536/0.6661, allocations: 387.5 kB / 1.396 GB, free: 25.86 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.424e-05/0.6662, allocations: 9.875 kB / 1.396 GB, free: 25.86 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.786e-05/0.6662, allocations: 16.88 kB / 1.396 GB, free: 25.86 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004405/0.6667, allocations: 294.8 kB / 1.396 GB, free: 25.83 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005353/0.6672, allocations: 0.5421 MB / 1.397 GB, free: 25.48 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.751e-05/0.6672, allocations: 9.328 kB / 1.397 GB, free: 25.47 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.29e-05/0.6673, allocations: 3.125 kB / 1.397 GB, free: 25.47 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.33e-05/0.6673, allocations: 37.98 kB / 1.397 GB, free: 25.46 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002163/0.6695, allocations: 3.293 MB / 1.4 GB, free: 22.6 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004261/0.6699, allocations: 289 kB / 1.4 GB, free: 22.54 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001895/0.6701, allocations: 161.3 kB / 1.401 GB, free: 22.52 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.012e-05/0.6701, allocations: 2.375 kB / 1.401 GB, free: 22.52 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.152e-05/0.6702, allocations: 44.55 kB / 1.401 GB, free: 22.47 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=26): time 1.332e-06/0.6702, allocations: 0 / 1.401 GB, free: 22.47 MB / 0.8386 GB Notification: Performance of matching and sorting (n=27): time 0.0009361/0.6711, allocations: 0.5781 MB / 1.401 GB, free: 22.26 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.459e-05/0.6711, allocations: 58.62 kB / 1.401 GB, free: 22.2 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002099/0.6713, allocations: 250.4 kB / 1.401 GB, free: 22.06 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.755e-05/0.6714, allocations: 27.14 kB / 1.401 GB, free: 22.03 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 6.947e-05/0.6714, allocations: 213.8 kB / 1.402 GB, free: 21.86 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 4.643e-05/0.6715, allocations: 95.47 kB / 1.402 GB, free: 21.79 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.465e-05/0.6715, allocations: 0 / 1.402 GB, free: 21.79 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 8.975e-05/0.6716, allocations: 344 kB / 1.402 GB, free: 21.46 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001696/0.6718, allocations: 126.4 kB / 1.402 GB, free: 21.45 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001975/0.672, allocations: 251.6 kB / 1.402 GB, free: 21.28 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002085/0.6722, allocations: 172.1 kB / 1.403 GB, free: 21.24 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.6722, allocations: 1.125 kB / 1.403 GB, free: 21.24 MB / 0.8386 GB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0006843/0.6729, allocations: 499.3 kB / 1.403 GB, free: 21.08 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.031e-05/0.6729, allocations: 4.375 kB / 1.403 GB, free: 21.08 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.444e-06/0.6729, allocations: 5.062 kB / 1.403 GB, free: 21.08 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002505/0.6732, allocations: 87.33 kB / 1.403 GB, free: 21.04 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003152/0.6735, allocations: 85.81 kB / 1.403 GB, free: 21.02 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.115e-06/0.6735, allocations: 9.312 kB / 1.403 GB, free: 21.01 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002297/0.6738, allocations: 22.11 kB / 1.403 GB, free: 21 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.776e-05/0.6738, allocations: 16.31 kB / 1.403 GB, free: 21 MB / 0.8386 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 8.06e-05/0.6739, allocations: 111.7 kB / 1.403 GB, free: 20.89 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.831e-05/0.674, allocations: 34.56 kB / 1.403 GB, free: 20.88 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006618/0.6746, allocations: 424.5 kB / 1.404 GB, free: 20.73 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.581e-06/0.6746, allocations: 3.5 kB / 1.404 GB, free: 20.73 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.6746, allocations: 0.7188 kB / 1.404 GB, free: 20.73 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.6747, allocations: 0.5312 kB / 1.404 GB, free: 20.73 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001069/0.6757, allocations: 0.8857 MB / 1.405 GB, free: 20.17 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.6757, allocations: 4.094 kB / 1.405 GB, free: 20.17 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002201/0.676, allocations: 55.59 kB / 1.405 GB, free: 20.12 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001968/0.6762, allocations: 80.02 kB / 1.405 GB, free: 20.04 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.641e-05/0.6762, allocations: 0 / 1.405 GB, free: 20.04 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.914e-06/0.6762, allocations: 0 / 1.405 GB, free: 20.04 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/0.6762, allocations: 11.98 kB / 1.405 GB, free: 20.03 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004936/0.6767, allocations: 0.547 MB / 1.405 GB, free: 19.52 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001028/0.6768, allocations: 135.8 kB / 1.406 GB, free: 19.38 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.017e-05/0.6769, allocations: 0 / 1.406 GB, free: 19.38 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002042/0.6771, allocations: 19.97 kB / 1.406 GB, free: 19.36 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.686e-05/0.6771, allocations: 15.89 kB / 1.406 GB, free: 19.34 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.507e-05/0.6772, allocations: 7.812 kB / 1.406 GB, free: 19.34 MB / 0.8386 GB Notification: Performance of sort global known variables: time 0.0001253/0.6773, allocations: 199.5 kB / 1.406 GB, free: 19.18 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003286/0.6776, allocations: 87.92 kB / 1.406 GB, free: 19.09 MB / 0.8386 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 9.379e-05/0.6777, allocations: 103.4 kB / 1.406 GB, free: 18.98 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0004388/0.6782, allocations: 0.5836 MB / 1.407 GB, free: 18.43 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.452e-06/0.6782, allocations: 4.062 kB / 1.407 GB, free: 18.43 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.000226/0.6784, allocations: 422.1 kB / 1.407 GB, free: 18 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004668/0.6789, allocations: 99.94 kB / 1.407 GB, free: 17.92 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006829/0.6796, allocations: 0.5171 MB / 1.408 GB, free: 17.42 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003347/0.6799, allocations: 0.8694 MB / 1.408 GB, free: 16.53 MB / 0.8386 GB Notification: Performance of SimCode: time 2.61e-07/0.6799, allocations: 3.938 kB / 1.408 GB, free: 16.53 MB / 0.8386 GB Notification: Performance of Templates: time 0.006516/0.6864, allocations: 4.533 MB / 1.413 GB, free: 12.09 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.sim & ./Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance.csv","../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches