Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.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_9_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_9_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 9.1.1-maint.9.1.x/package.mo): time 1.736/1.736, allocations: 387.2 MB / 394.5 MB, free: 13.64 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.0009506/0.0009506, allocations: 181.3 kB / 487 MB, free: 5.406 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.116/1.116, allocations: 221.3 MB / 0.7819 GB, free: 1.379 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008138/0.0008138, allocations: 93.5 kB / 0.9213 GB, free: 2.645 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 5.229e-06/5.249e-06, allocations: 0 / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1789/0.1789, allocations: 142.3 MB / 1.205 GB, free: 26.27 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4946/0.6735, allocations: 176.7 MB / 1.378 GB, free: 0.7422 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001932/0.6738, allocations: 92.31 kB / 1.378 GB, free: 0.6953 MB / 0.8073 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/Electrical/Interfaces/Source.mo:28:9-28: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 9.1.1-maint.9.1.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 9.1.1-maint.9.1.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.04741/0.7212, allocations: 23.3 MB / 1.401 GB, free: 13.47 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.435e-05/0.7212, allocations: 4 kB / 1.401 GB, free: 13.46 MB / 0.8386 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.0008166/0.722, allocations: 0.5999 MB / 1.401 GB, free: 12.84 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 2.928e-05/0.7221, allocations: 8.031 kB / 1.401 GB, free: 12.84 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007048/0.7228, allocations: 99.44 kB / 1.401 GB, free: 12.74 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003467/0.7231, allocations: 294.6 kB / 1.402 GB, free: 12.43 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.125e-05/0.7232, allocations: 12 kB / 1.402 GB, free: 12.42 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.592e-05/0.7232, allocations: 19.91 kB / 1.402 GB, free: 12.4 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004101/0.7236, allocations: 302.1 kB / 1.402 GB, free: 12.2 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005018/0.7241, allocations: 404.9 kB / 1.402 GB, free: 11.86 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.328e-05/0.7242, allocations: 11.94 kB / 1.402 GB, free: 11.85 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.942e-05/0.7242, allocations: 0 / 1.402 GB, free: 11.85 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.381e-05/0.7243, allocations: 32.62 kB / 1.402 GB, free: 11.82 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001881/0.7261, allocations: 1.999 MB / 1.404 GB, free: 9.809 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003723/0.7265, allocations: 174.6 kB / 1.404 GB, free: 9.676 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002388/0.7268, allocations: 136.4 kB / 1.405 GB, free: 9.57 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.071e-05/0.7268, allocations: 0 / 1.405 GB, free: 9.57 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.928e-05/0.7268, allocations: 42.38 kB / 1.405 GB, free: 9.523 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=18): time 1.042e-06/0.7268, allocations: 0 / 1.405 GB, free: 9.523 MB / 0.8386 GB Notification: Performance of matching and sorting (n=18): time 0.0003665/0.7272, allocations: 180 kB / 1.405 GB, free: 9.371 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.58e-05/0.7272, allocations: 62.78 kB / 1.405 GB, free: 9.301 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001576/0.7274, allocations: 192.4 kB / 1.405 GB, free: 9.137 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.994e-05/0.7274, allocations: 25.7 kB / 1.405 GB, free: 9.105 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 8.777e-05/0.7275, allocations: 197.5 kB / 1.405 GB, free: 8.922 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 4.083e-05/0.7276, allocations: 69.34 kB / 1.405 GB, free: 8.859 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.015e-05/0.7276, allocations: 0 / 1.405 GB, free: 8.859 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 9.532e-05/0.7277, allocations: 329.5 kB / 1.406 GB, free: 8.535 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.202e-05/0.7278, allocations: 61.3 kB / 1.406 GB, free: 8.496 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001509/0.7279, allocations: 180.5 kB / 1.406 GB, free: 8.297 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001336/0.7281, allocations: 96.8 kB / 1.406 GB, free: 8.227 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.7281, allocations: 0 / 1.406 GB, free: 8.227 MB / 0.8386 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0004133/0.7285, allocations: 268.8 kB / 1.406 GB, free: 8 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004655/0.729, allocations: 1.397 MB / 1.408 GB, free: 6.52 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.653e-06/0.729, allocations: 4 kB / 1.408 GB, free: 6.516 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001382/0.7291, allocations: 24.41 kB / 1.408 GB, free: 6.492 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002885/0.7294, allocations: 83.14 kB / 1.408 GB, free: 6.414 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003309/0.7298, allocations: 0.5504 MB / 1.408 GB, free: 5.848 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002486/0.73, allocations: 43.81 kB / 1.408 GB, free: 5.805 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.186e-05/0.7301, allocations: 15.44 kB / 1.408 GB, free: 5.793 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 6.502e-06/0.7301, allocations: 4 kB / 1.408 GB, free: 5.789 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000278/0.7304, allocations: 202.9 kB / 1.408 GB, free: 5.629 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.887e-06/0.7304, allocations: 4 kB / 1.408 GB, free: 5.625 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.099e-06/0.7304, allocations: 4 kB / 1.408 GB, free: 5.621 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002725/0.7307, allocations: 80.27 kB / 1.409 GB, free: 5.543 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.572e-06/0.7307, allocations: 7.938 kB / 1.409 GB, free: 5.535 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002033/0.7309, allocations: 42.75 kB / 1.409 GB, free: 5.496 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.93e-05/0.7309, allocations: 15.91 kB / 1.409 GB, free: 5.48 MB / 0.8386 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.259e-05/0.731, allocations: 111.9 kB / 1.409 GB, free: 5.367 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.781e-05/0.7311, allocations: 23.72 kB / 1.409 GB, free: 5.344 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.254e-05/0.7311, allocations: 31.33 kB / 1.409 GB, free: 5.328 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.813e-06/0.7311, allocations: 3.938 kB / 1.409 GB, free: 5.324 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.467e-06/0.7311, allocations: 0 / 1.409 GB, free: 5.324 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.926e-06/0.7311, allocations: 0 / 1.409 GB, free: 5.324 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007193/0.7319, allocations: 0.6521 MB / 1.409 GB, free: 4.703 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.7319, allocations: 4 kB / 1.409 GB, free: 4.699 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002081/0.7321, allocations: 51.97 kB / 1.409 GB, free: 4.648 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.779e-05/0.7322, allocations: 23.91 kB / 1.409 GB, free: 4.625 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.244e-05/0.7322, allocations: 0 / 1.409 GB, free: 4.625 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008186/0.733, allocations: 1.249 MB / 1.411 GB, free: 3.301 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.377e-06/0.733, allocations: 4.031 kB / 1.411 GB, free: 3.297 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003334/0.7334, allocations: 333.9 kB / 1.411 GB, free: 2.973 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 9.14e-05/0.7335, allocations: 118.6 kB / 1.411 GB, free: 2.844 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.168e-05/0.7335, allocations: 4 kB / 1.411 GB, free: 2.84 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001949/0.7337, allocations: 23.98 kB / 1.411 GB, free: 2.816 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.077e-05/0.7338, allocations: 18.59 kB / 1.411 GB, free: 2.801 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.246e-05/0.7338, allocations: 4 kB / 1.411 GB, free: 2.797 MB / 0.8386 GB Notification: Performance of sort global known variables: time 9.645e-05/0.7339, allocations: 148.9 kB / 1.411 GB, free: 2.676 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0004845/0.7344, allocations: 135.4 kB / 1.411 GB, free: 2.543 MB / 0.8386 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.0001049/0.7345, allocations: 104.6 kB / 1.412 GB, free: 2.43 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0004446/0.7349, allocations: 285.1 kB / 1.412 GB, free: 2.219 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.735, allocations: 0 / 1.412 GB, free: 2.219 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0002112/0.7352, allocations: 193 kB / 1.412 GB, free: 2.043 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003192/0.7355, allocations: 49.27 kB / 1.412 GB, free: 2.008 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006192/0.7361, allocations: 375.1 kB / 1.412 GB, free: 1.645 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003845/0.7365, allocations: 0.8326 MB / 1.413 GB, free: 0.8008 MB / 0.8386 GB Notification: Performance of SimCode: time 2.1e-07/0.7365, allocations: 0 / 1.413 GB, free: 0.8008 MB / 0.8386 GB Notification: Performance of Templates: time 0.006524/0.7431, allocations: 3.772 MB / 1.417 GB, free: 13.06 MB / 0.8542 GB make -j1 -f Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad.makefile (rm -f Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad.sim & ./Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_DC_Loads_Examples_VariableLoad.csv","../files/Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches