Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.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.DC.Loads.Examples.LinearizedLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|error|sen_nlin.I|sen_lin.I|sen_nlin.V|sen_lin.V|sen_nlin.P|sen_lin.P",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad") translateModel(Buildings.Electrical.DC.Loads.Examples.LinearizedLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|error|sen_nlin.I|sen_lin.I|sen_nlin.V|sen_lin.V|sen_nlin.P|sen_lin.P",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad") [: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.189/1.189, allocations: 249.4 MB / 256.7 MB, free: 6.984 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.0009829/0.0009829, allocations: 180.5 kB / 316 MB, free: 3.492 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.019/1.019, allocations: 205.2 MB / 0.5667 GB, free: 15.56 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.0007773/0.0007773, allocations: 75.41 kB / 0.671 GB, free: 4.691 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 4.879e-06/4.899e-06, allocations: 0 / 0.7807 GB, free: 102.9 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1306/0.1306, allocations: 106.3 MB / 0.8846 GB, free: 12.43 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4082/0.5389, allocations: 160.1 MB / 1.041 GB, free: 12.77 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002206/0.5392, allocations: 84.61 kB / 1.041 GB, free: 12.73 MB / 0.6667 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/Electrical/Interfaces/Source.mo:30:9-30:50:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.potentialRoot(terminal.theta);. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/Electrical/Transmission/BaseClasses/PartialTwoPortResistance.mo:13:3-13:57:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.branch(terminal_p.theta, terminal_n.theta);. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/Electrical/DC/Sensors/GeneralizedSensor.mo:39:3-39:57:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.branch(terminal_p.theta, terminal_n.theta);. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/Electrical/Transmission/BaseClasses/PartialTwoPortResistance.mo:13:3-13:57:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.branch(terminal_p.theta, terminal_n.theta);. Notification: Performance of FrontEnd: time 0.03823/0.5774, allocations: 17.33 MB / 1.058 GB, free: 14.53 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 2.222e-05/0.5774, allocations: 8 kB / 1.058 GB, free: 14.52 MB / 0.6823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.0009381/0.5784, allocations: 0.6185 MB / 1.058 GB, free: 13.88 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 3.053e-05/0.5784, allocations: 12.03 kB / 1.059 GB, free: 13.87 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008225/0.5792, allocations: 111.4 kB / 1.059 GB, free: 13.76 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005628/0.5798, allocations: 330.7 kB / 1.059 GB, free: 13.42 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.657e-05/0.5799, allocations: 42.48 kB / 1.059 GB, free: 13.38 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.29e-05/0.58, allocations: 20 kB / 1.059 GB, free: 13.36 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000468/0.5804, allocations: 326.9 kB / 1.059 GB, free: 13.14 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005642/0.581, allocations: 441.2 kB / 1.06 GB, free: 12.79 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.191e-05/0.581, allocations: 0 / 1.06 GB, free: 12.79 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.298e-05/0.5811, allocations: 0 / 1.06 GB, free: 12.79 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.404e-05/0.5811, allocations: 35.69 kB / 1.06 GB, free: 12.76 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002121/0.5832, allocations: 2.162 MB / 1.062 GB, free: 10.6 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000437/0.5837, allocations: 225.7 kB / 1.062 GB, free: 10.43 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002375/0.5839, allocations: 132.8 kB / 1.062 GB, free: 10.33 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 3.267e-05/0.584, allocations: 11.98 kB / 1.062 GB, free: 10.32 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.895e-05/0.584, allocations: 30.56 kB / 1.062 GB, free: 10.28 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=19): time 1.172e-06/0.584, allocations: 0 / 1.062 GB, free: 10.28 MB / 0.6823 GB Notification: Performance of matching and sorting (n=19): time 0.0005731/0.5846, allocations: 242.9 kB / 1.062 GB, free: 10.07 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.36e-05/0.5846, allocations: 59.34 kB / 1.063 GB, free: 10 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001495/0.5848, allocations: 186.5 kB / 1.063 GB, free: 9.844 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 2.149e-05/0.5848, allocations: 25.7 kB / 1.063 GB, free: 9.812 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 9.252e-05/0.5849, allocations: 201.6 kB / 1.063 GB, free: 9.621 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 4.132e-05/0.5849, allocations: 66.59 kB / 1.063 GB, free: 9.562 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.175e-05/0.585, allocations: 0 / 1.063 GB, free: 9.562 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001156/0.5851, allocations: 329.5 kB / 1.063 GB, free: 9.242 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.879e-05/0.5852, allocations: 65.11 kB / 1.063 GB, free: 9.199 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001532/0.5853, allocations: 168.5 kB / 1.064 GB, free: 9.027 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001312/0.5855, allocations: 102.1 kB / 1.064 GB, free: 8.957 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.5855, allocations: 0 / 1.064 GB, free: 8.957 MB / 0.6823 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005988/0.5861, allocations: 312.3 kB / 1.064 GB, free: 8.695 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002993/0.5864, allocations: 0.9657 MB / 1.065 GB, free: 7.672 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.5864, allocations: 0 / 1.065 GB, free: 7.672 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003926/0.5868, allocations: 99.77 kB / 1.065 GB, free: 7.582 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00022/0.5871, allocations: 55.91 kB / 1.065 GB, free: 7.527 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001779/0.5888, allocations: 1.954 MB / 1.067 GB, free: 5.516 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002376/0.5891, allocations: 27.73 kB / 1.067 GB, free: 5.488 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.965e-05/0.5891, allocations: 11.25 kB / 1.067 GB, free: 5.48 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 4.939e-06/0.5891, allocations: 4 kB / 1.067 GB, free: 5.477 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004768/0.5896, allocations: 235.9 kB / 1.067 GB, free: 5.293 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.978e-06/0.5896, allocations: 4 kB / 1.067 GB, free: 5.289 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002371/0.5899, allocations: 79.31 kB / 1.067 GB, free: 5.219 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002248/0.5901, allocations: 59.53 kB / 1.067 GB, free: 5.164 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001424/0.5915, allocations: 1.402 MB / 1.069 GB, free: 3.723 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002188/0.5918, allocations: 27.75 kB / 1.069 GB, free: 3.695 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.832e-05/0.5918, allocations: 19.92 kB / 1.069 GB, free: 3.676 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 25 * 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: 0 * Non-linear torn systems: 2 {1 1,1 2} Notification: Performance of prepare postOptimizeDAE: time 7.712e-05/0.5919, allocations: 104.9 kB / 1.069 GB, free: 3.566 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.735e-05/0.5919, allocations: 31.8 kB / 1.069 GB, free: 3.539 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.059e-05/0.592, allocations: 24.02 kB / 1.069 GB, free: 3.531 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.865e-06/0.592, allocations: 4 kB / 1.069 GB, free: 3.527 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.262e-06/0.592, allocations: 0 / 1.069 GB, free: 3.527 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.152e-06/0.592, allocations: 3.984 kB / 1.069 GB, free: 3.523 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009292/0.5929, allocations: 0.7205 MB / 1.07 GB, free: 2.848 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.5929, allocations: 4 kB / 1.07 GB, free: 2.844 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001509/0.5931, allocations: 35.91 kB / 1.07 GB, free: 2.809 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003257/0.5934, allocations: 101.1 kB / 1.07 GB, free: 2.719 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.358e-05/0.5935, allocations: 4 kB / 1.07 GB, free: 2.715 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002176/0.5956, allocations: 2.646 MB / 1.072 GB, free: 15.95 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.5957, allocations: 0 / 1.072 GB, free: 15.95 MB / 0.698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005229/0.5962, allocations: 399.2 kB / 1.073 GB, free: 15.57 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 9.201e-05/0.5963, allocations: 115.7 kB / 1.073 GB, free: 15.45 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.104e-05/0.5963, allocations: 7.984 kB / 1.073 GB, free: 15.44 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001754/0.5965, allocations: 12 kB / 1.073 GB, free: 15.43 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.2e-05/0.5966, allocations: 19.62 kB / 1.073 GB, free: 15.41 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.317e-05/0.5966, allocations: 7.938 kB / 1.073 GB, free: 15.4 MB / 0.698 GB Notification: Performance of sort global known variables: time 8.581e-05/0.5967, allocations: 139.2 kB / 1.073 GB, free: 15.29 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0005106/0.5972, allocations: 151.4 kB / 1.073 GB, free: 15.14 MB / 0.698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 15 * 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: 0 * Non-linear torn systems: 2 {1 1,1 2} Notification: Performance of Backend phase and start with SimCode phase: time 9.884e-05/0.5973, allocations: 107.2 kB / 1.073 GB, free: 15.02 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.001328/0.5986, allocations: 0.5745 MB / 1.074 GB, free: 14.52 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.5986, allocations: 3.562 kB / 1.074 GB, free: 14.52 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0006085/0.5993, allocations: 327.5 kB / 1.074 GB, free: 14.2 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002741/0.5995, allocations: 39.47 kB / 1.074 GB, free: 14.17 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007135/0.6003, allocations: 414.6 kB / 1.075 GB, free: 13.77 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003667/0.6006, allocations: 0.8406 MB / 1.075 GB, free: 12.92 MB / 0.698 GB Notification: Performance of SimCode: time 2.41e-07/0.6007, allocations: 0 / 1.075 GB, free: 12.92 MB / 0.698 GB Notification: Performance of Templates: time 0.00745/0.6081, allocations: 4.65 MB / 1.08 GB, free: 8.309 MB / 0.698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.makefile (rm -f Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.sim & ./Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Electrical_DC_Loads_Examples_LinearizedLoad.csv","../files/Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches