Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.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.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_9_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_9_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 9.1.1-maint.9.1.x/package.mo): time 1.78/1.78, allocations: 387.2 MB / 394.5 MB, free: 13.62 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.0009376/0.0009376, allocations: 177.3 kB / 487 MB, free: 5.305 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.114/1.114, allocations: 221.3 MB / 0.7819 GB, free: 1.27 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.0008383/0.0008383, allocations: 92.28 kB / 0.9213 GB, free: 2.523 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 5.019e-06/5.029e-06, allocations: 0 / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.185/0.185, allocations: 142.3 MB / 1.205 GB, free: 26.15 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.528/0.7131, allocations: 176.9 MB / 1.378 GB, free: 64 kB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002038/0.7133, allocations: 90.97 kB / 1.378 GB, free: 16 kB / 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);. [/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);. Notification: Performance of FrontEnd: time 0.05096/0.7643, allocations: 25.25 MB / 1.403 GB, free: 11.17 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.979e-05/0.7643, allocations: 8 kB / 1.403 GB, free: 11.16 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.0009567/0.7653, allocations: 0.6085 MB / 1.403 GB, free: 10.53 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.386e-05/0.7653, allocations: 12.53 kB / 1.403 GB, free: 10.52 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008571/0.7662, allocations: 114.9 kB / 1.403 GB, free: 10.41 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005453/0.7667, allocations: 337.5 kB / 1.404 GB, free: 10.06 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.657e-05/0.7668, allocations: 42.48 kB / 1.404 GB, free: 10.02 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.948e-05/0.7669, allocations: 20 kB / 1.404 GB, free: 9.996 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004774/0.7674, allocations: 331.9 kB / 1.404 GB, free: 9.781 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005658/0.7679, allocations: 442.3 kB / 1.405 GB, free: 9.426 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.26e-05/0.768, allocations: 7.875 kB / 1.405 GB, free: 9.418 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.412e-05/0.768, allocations: 0 / 1.405 GB, free: 9.418 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.652e-05/0.768, allocations: 36.05 kB / 1.405 GB, free: 9.387 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002119/0.7702, allocations: 2.147 MB / 1.407 GB, free: 7.25 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004365/0.7706, allocations: 226.5 kB / 1.407 GB, free: 7.074 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002421/0.7709, allocations: 131 kB / 1.407 GB, free: 6.977 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.69e-05/0.7709, allocations: 4 kB / 1.407 GB, free: 6.973 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.205e-05/0.7709, allocations: 38.5 kB / 1.407 GB, free: 6.926 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=19): time 1.423e-06/0.7709, allocations: 0 / 1.407 GB, free: 6.926 MB / 0.8386 GB Notification: Performance of matching and sorting (n=19): time 0.0005729/0.7715, allocations: 249.6 kB / 1.407 GB, free: 6.719 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.403e-05/0.7715, allocations: 55.36 kB / 1.407 GB, free: 6.652 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001497/0.7717, allocations: 182.4 kB / 1.408 GB, free: 6.496 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.913e-05/0.7717, allocations: 29.7 kB / 1.408 GB, free: 6.461 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 8.521e-05/0.7718, allocations: 199.6 kB / 1.408 GB, free: 6.273 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 4.223e-05/0.7719, allocations: 66.03 kB / 1.408 GB, free: 6.215 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.085e-05/0.7719, allocations: 0 / 1.408 GB, free: 6.215 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 8.446e-05/0.772, allocations: 329.6 kB / 1.408 GB, free: 5.891 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001003/0.7721, allocations: 74.47 kB / 1.408 GB, free: 5.844 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001441/0.7722, allocations: 165.3 kB / 1.408 GB, free: 5.672 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001309/0.7724, allocations: 89.55 kB / 1.408 GB, free: 5.609 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.7724, allocations: 0 / 1.408 GB, free: 5.609 MB / 0.8386 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005982/0.773, allocations: 323.4 kB / 1.409 GB, free: 5.34 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003166/0.7733, allocations: 0.9617 MB / 1.41 GB, free: 4.32 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.864e-06/0.7733, allocations: 4 kB / 1.41 GB, free: 4.316 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004083/0.7737, allocations: 94.7 kB / 1.41 GB, free: 4.23 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002377/0.774, allocations: 61.38 kB / 1.41 GB, free: 4.172 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001814/0.7758, allocations: 1.945 MB / 1.412 GB, free: 2.172 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002455/0.7761, allocations: 39.77 kB / 1.412 GB, free: 2.133 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.007e-05/0.7761, allocations: 8 kB / 1.412 GB, free: 2.125 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 6.012e-06/0.7761, allocations: 4 kB / 1.412 GB, free: 2.121 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004692/0.7766, allocations: 243.3 kB / 1.412 GB, free: 1.934 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.216e-06/0.7766, allocations: 0 / 1.412 GB, free: 1.934 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002398/0.7768, allocations: 75.92 kB / 1.412 GB, free: 1.863 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002243/0.7771, allocations: 59.09 kB / 1.412 GB, free: 1.809 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001479/0.7786, allocations: 1.41 MB / 1.414 GB, free: 364 kB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002183/0.7788, allocations: 23.88 kB / 1.414 GB, free: 340 kB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.85e-05/0.7788, allocations: 11.12 kB / 1.414 GB, free: 332 kB / 0.8386 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 9.038e-05/0.7789, allocations: 105 kB / 1.414 GB, free: 220 kB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.716e-05/0.779, allocations: 23.66 kB / 1.414 GB, free: 196 kB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.106e-05/0.779, allocations: 27.09 kB / 1.414 GB, free: 184 kB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/0.779, allocations: 4 kB / 1.414 GB, free: 180 kB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.966e-06/0.779, allocations: 7.922 kB / 1.414 GB, free: 172 kB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.779, allocations: 0 / 1.414 GB, free: 172 kB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009788/0.78, allocations: 0.729 MB / 1.414 GB, free: 15.48 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.093e-06/0.78, allocations: 0 / 1.414 GB, free: 15.48 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001529/0.7802, allocations: 39.16 kB / 1.414 GB, free: 15.45 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003208/0.7805, allocations: 91.95 kB / 1.415 GB, free: 15.36 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.652e-05/0.7806, allocations: 0 / 1.415 GB, free: 15.36 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002193/0.7828, allocations: 2.654 MB / 1.417 GB, free: 12.59 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/0.7828, allocations: 0 / 1.417 GB, free: 12.59 MB / 0.8542 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005301/0.7833, allocations: 403.4 kB / 1.418 GB, free: 12.21 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 9.534e-05/0.7834, allocations: 119.9 kB / 1.418 GB, free: 12.08 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.109e-05/0.7835, allocations: 0 / 1.418 GB, free: 12.08 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001773/0.7836, allocations: 12 kB / 1.418 GB, free: 12.07 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.157e-05/0.7837, allocations: 15.97 kB / 1.418 GB, free: 12.05 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.444e-05/0.7837, allocations: 7.5 kB / 1.418 GB, free: 12.05 MB / 0.8542 GB Notification: Performance of sort global known variables: time 9.404e-05/0.7838, allocations: 134.7 kB / 1.418 GB, free: 11.94 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0005442/0.7844, allocations: 159.3 kB / 1.418 GB, free: 11.78 MB / 0.8542 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 0.0001157/0.7845, allocations: 100.6 kB / 1.418 GB, free: 11.68 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.001371/0.7859, allocations: 0.5729 MB / 1.419 GB, free: 11.17 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 3.988e-06/0.7859, allocations: 0 / 1.419 GB, free: 11.17 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.000611/0.7865, allocations: 342.5 kB / 1.419 GB, free: 10.84 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002921/0.7868, allocations: 44.02 kB / 1.419 GB, free: 10.81 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007728/0.7876, allocations: 413 kB / 1.419 GB, free: 10.41 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004221/0.788, allocations: 0.8412 MB / 1.42 GB, free: 9.562 MB / 0.8542 GB Notification: Performance of SimCode: time 2.7e-07/0.788, allocations: 0 / 1.42 GB, free: 9.562 MB / 0.8542 GB Notification: Performance of Templates: time 0.007863/0.7959, allocations: 4.657 MB / 1.425 GB, free: 4.941 MB / 0.8542 GB make -j1 -f Buildings_9_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.makefile (rm -f Buildings_9_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.sim & ./Buildings_9_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_DC_Loads_Examples_LinearizedLoad.csv","../files/Buildings_9_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches