Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.VariableLoad.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.VariableLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|loa1.i.1.|loa2.i.1.|loa3.i.1.",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.VariableLoad") translateModel(Buildings.Electrical.DC.Loads.Examples.VariableLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|loa1.i.1.|loa2.i.1.|loa3.i.1.",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.VariableLoad") [: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.186/1.186, allocations: 249.4 MB / 256.7 MB, free: 6.945 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.00103/0.00103, allocations: 193.2 kB / 316 MB, free: 3.551 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.049/1.049, allocations: 205.1 MB / 0.5667 GB, free: 15.69 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.0007827/0.0007827, allocations: 84.98 kB / 0.671 GB, free: 4.816 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 6.142e-06/6.162e-06, allocations: 4 kB / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1383/0.1384, allocations: 106.3 MB / 0.8846 GB, free: 12.63 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.427/0.5653, allocations: 159.8 MB / 1.041 GB, free: 13.11 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001956/0.5656, allocations: 88.75 kB / 1.041 GB, free: 13.07 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);. Notification: Performance of FrontEnd: time 0.03973/0.6053, allocations: 18.91 MB / 1.059 GB, free: 13.71 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 1.507e-05/0.6053, allocations: 11.83 kB / 1.059 GB, free: 13.71 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: 82 * Number of variables: 82 Notification: Performance of Generate backend data structure: time 0.0008102/0.6062, allocations: 0.5932 MB / 1.06 GB, free: 13.09 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 3.017e-05/0.6062, allocations: 8.031 kB / 1.06 GB, free: 13.08 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007152/0.6069, allocations: 107.4 kB / 1.06 GB, free: 12.98 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003472/0.6073, allocations: 296.8 kB / 1.06 GB, free: 12.67 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.231e-05/0.6073, allocations: 12 kB / 1.06 GB, free: 12.66 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.164e-05/0.6074, allocations: 16 kB / 1.06 GB, free: 12.64 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004035/0.6078, allocations: 285.1 kB / 1.06 GB, free: 12.45 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005229/0.6083, allocations: 415.4 kB / 1.061 GB, free: 12.11 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.296e-05/0.6083, allocations: 3.938 kB / 1.061 GB, free: 12.11 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.886e-05/0.6084, allocations: 0 / 1.061 GB, free: 12.11 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.413e-05/0.6084, allocations: 31.89 kB / 1.061 GB, free: 12.08 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001888/0.6103, allocations: 2.002 MB / 1.063 GB, free: 10.06 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003835/0.6107, allocations: 186.8 kB / 1.063 GB, free: 9.918 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002379/0.6109, allocations: 127.7 kB / 1.063 GB, free: 9.82 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.182e-05/0.611, allocations: 4 kB / 1.063 GB, free: 9.816 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.982e-05/0.611, allocations: 38.55 kB / 1.063 GB, free: 9.77 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=18): time 1.263e-06/0.611, allocations: 3.938 kB / 1.063 GB, free: 9.766 MB / 0.6823 GB Notification: Performance of matching and sorting (n=18): time 0.0003712/0.6114, allocations: 187.1 kB / 1.063 GB, free: 9.609 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.923e-05/0.6114, allocations: 55.41 kB / 1.063 GB, free: 9.543 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001541/0.6116, allocations: 190.2 kB / 1.064 GB, free: 9.383 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 1.858e-05/0.6116, allocations: 25.7 kB / 1.064 GB, free: 9.352 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 8.605e-05/0.6117, allocations: 202.1 kB / 1.064 GB, free: 9.164 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 4.567e-05/0.6117, allocations: 73.84 kB / 1.064 GB, free: 9.098 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.05e-05/0.6118, allocations: 0 / 1.064 GB, free: 9.098 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 9.416e-05/0.6119, allocations: 325.8 kB / 1.064 GB, free: 8.777 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.12e-05/0.612, allocations: 61.86 kB / 1.064 GB, free: 8.738 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001505/0.6121, allocations: 185.2 kB / 1.064 GB, free: 8.535 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000119/0.6122, allocations: 84.05 kB / 1.065 GB, free: 8.477 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.6123, allocations: 4 kB / 1.065 GB, free: 8.473 MB / 0.6823 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.000426/0.6127, allocations: 279.8 kB / 1.065 GB, free: 8.234 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004283/0.6131, allocations: 1.391 MB / 1.066 GB, free: 6.758 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.304e-06/0.6131, allocations: 11.94 kB / 1.066 GB, free: 6.746 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001386/0.6133, allocations: 31.97 kB / 1.066 GB, free: 6.715 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002856/0.6136, allocations: 70.97 kB / 1.066 GB, free: 6.648 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003389/0.6139, allocations: 0.5589 MB / 1.067 GB, free: 6.074 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002561/0.6142, allocations: 39.72 kB / 1.067 GB, free: 6.035 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.145e-05/0.6142, allocations: 15.81 kB / 1.067 GB, free: 6.023 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 5.891e-06/0.6142, allocations: 9.5 kB / 1.067 GB, free: 6.016 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0002674/0.6145, allocations: 191.4 kB / 1.067 GB, free: 5.867 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.514e-06/0.6145, allocations: 0 / 1.067 GB, free: 5.867 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.123e-06/0.6145, allocations: 8.469 kB / 1.067 GB, free: 5.859 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002905/0.6148, allocations: 83.8 kB / 1.067 GB, free: 5.777 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.338e-06/0.6148, allocations: 4 kB / 1.067 GB, free: 5.773 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002084/0.615, allocations: 35.83 kB / 1.067 GB, free: 5.738 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.935e-05/0.6151, allocations: 14.98 kB / 1.067 GB, free: 5.727 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 31 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 8.016e-05/0.6152, allocations: 119.9 kB / 1.067 GB, free: 5.605 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.277e-05/0.6152, allocations: 23.72 kB / 1.067 GB, free: 5.582 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.283e-05/0.6153, allocations: 26.83 kB / 1.067 GB, free: 5.57 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.789e-06/0.6153, allocations: 7.906 kB / 1.067 GB, free: 5.562 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.447e-06/0.6153, allocations: 4 kB / 1.067 GB, free: 5.559 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.386e-06/0.6153, allocations: 0 / 1.067 GB, free: 5.559 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007239/0.616, allocations: 0.6361 MB / 1.068 GB, free: 4.953 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.616, allocations: 0 / 1.068 GB, free: 4.953 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002038/0.6163, allocations: 48.03 kB / 1.068 GB, free: 4.906 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.627e-05/0.6164, allocations: 28.28 kB / 1.068 GB, free: 4.879 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.388e-05/0.6164, allocations: 8 kB / 1.068 GB, free: 4.871 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008245/0.6172, allocations: 1.258 MB / 1.069 GB, free: 3.539 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.946e-06/0.6172, allocations: 0 / 1.069 GB, free: 3.539 MB / 0.6823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003344/0.6176, allocations: 340.5 kB / 1.07 GB, free: 3.211 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 8.901e-05/0.6177, allocations: 112.5 kB / 1.07 GB, free: 3.086 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.958e-05/0.6177, allocations: 0 / 1.07 GB, free: 3.086 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001966/0.6179, allocations: 19.98 kB / 1.07 GB, free: 3.066 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.601e-05/0.618, allocations: 18.89 kB / 1.07 GB, free: 3.051 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.25e-05/0.618, allocations: 7.188 kB / 1.07 GB, free: 3.047 MB / 0.6823 GB Notification: Performance of sort global known variables: time 0.0001058/0.6181, allocations: 154.7 kB / 1.07 GB, free: 2.918 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0004627/0.6186, allocations: 135.5 kB / 1.07 GB, free: 2.785 MB / 0.6823 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 (18): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001055/0.6187, allocations: 95.25 kB / 1.07 GB, free: 2.684 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0004523/0.6191, allocations: 300.1 kB / 1.07 GB, free: 2.457 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.083e-06/0.6191, allocations: 0 / 1.07 GB, free: 2.457 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.000211/0.6193, allocations: 174.3 kB / 1.071 GB, free: 2.297 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003272/0.6197, allocations: 66.2 kB / 1.071 GB, free: 2.25 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006192/0.6203, allocations: 375.8 kB / 1.071 GB, free: 1.883 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003885/0.6207, allocations: 0.8349 MB / 1.072 GB, free: 1.031 MB / 0.6823 GB Notification: Performance of SimCode: time 2.5e-07/0.6207, allocations: 0 / 1.072 GB, free: 1.031 MB / 0.6823 GB Notification: Performance of Templates: time 0.006589/0.6273, allocations: 3.769 MB / 1.076 GB, free: 13.3 MB / 0.698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.VariableLoad.makefile (rm -f Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.VariableLoad.sim & ./Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.VariableLoad -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.VariableLoad_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Electrical_DC_Loads_Examples_VariableLoad.csv","../files/Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.VariableLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches