Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.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.Resistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I|sen1.I",fileNamePrefix="Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor") translateModel(Buildings.Electrical.DC.Loads.Examples.Resistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I|sen1.I",fileNamePrefix="Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor") [: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.767/1.767, 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.0009137/0.0009137, allocations: 177.3 kB / 487 MB, free: 5.355 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.107/1.107, 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.000811/0.000811, allocations: 105.7 kB / 0.9213 GB, free: 2.617 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 5.721e-06/5.751e-06, allocations: 4 kB / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1726/0.1726, allocations: 142.3 MB / 1.205 GB, free: 26.23 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5076/0.6802, allocations: 175 MB / 1.376 GB, free: 2.121 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001879/0.6804, allocations: 90.19 kB / 1.376 GB, free: 2.074 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.04193/0.7224, allocations: 21.63 MB / 1.397 GB, free: 168 kB / 0.823 GB Notification: Performance of Transformations before backend: time 1.802e-05/0.7224, allocations: 15.92 kB / 1.397 GB, free: 152 kB / 0.823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.0006478/0.7231, allocations: 0.5487 MB / 1.398 GB, free: 15.58 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.087e-05/0.7231, allocations: 8.031 kB / 1.398 GB, free: 15.57 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009723/0.7241, allocations: 147.3 kB / 1.398 GB, free: 15.43 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003599/0.7245, allocations: 287.4 kB / 1.398 GB, free: 15.13 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.438e-05/0.7245, allocations: 12 kB / 1.398 GB, free: 15.12 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.721e-05/0.7245, allocations: 16 kB / 1.398 GB, free: 15.1 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003961/0.7249, allocations: 283.1 kB / 1.399 GB, free: 14.92 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004776/0.7254, allocations: 416 kB / 1.399 GB, free: 14.57 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.207e-05/0.7254, allocations: 3.906 kB / 1.399 GB, free: 14.56 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.063e-05/0.7255, allocations: 8 kB / 1.399 GB, free: 14.55 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.494e-05/0.7255, allocations: 28.14 kB / 1.399 GB, free: 14.53 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001729/0.7272, allocations: 2.12 MB / 1.401 GB, free: 12.38 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002331/0.7275, allocations: 163.6 kB / 1.401 GB, free: 12.25 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002233/0.7277, allocations: 108.7 kB / 1.401 GB, free: 12.16 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 9.438e-06/0.7277, allocations: 0 / 1.401 GB, free: 12.16 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.854e-05/0.7278, allocations: 38.25 kB / 1.401 GB, free: 12.12 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=14): time 1.062e-06/0.7278, allocations: 0 / 1.401 GB, free: 12.12 MB / 0.8386 GB Notification: Performance of matching and sorting (n=14): time 0.0003006/0.7281, allocations: 155.4 kB / 1.402 GB, free: 11.98 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.414e-05/0.7281, allocations: 59.34 kB / 1.402 GB, free: 11.91 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001548/0.7283, allocations: 192.7 kB / 1.402 GB, free: 11.75 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.484e-05/0.7283, allocations: 25.7 kB / 1.402 GB, free: 11.72 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 7.55e-05/0.7284, allocations: 195.7 kB / 1.402 GB, free: 11.54 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.937e-05/0.7284, allocations: 50.23 kB / 1.402 GB, free: 11.5 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.614e-06/0.7284, allocations: 0 / 1.402 GB, free: 11.5 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 7.987e-05/0.7285, allocations: 334.6 kB / 1.402 GB, free: 11.17 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.254e-05/0.7286, allocations: 48.27 kB / 1.402 GB, free: 11.14 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001097/0.7287, allocations: 137.3 kB / 1.403 GB, free: 10.99 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000101/0.7288, allocations: 81.39 kB / 1.403 GB, free: 10.93 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.7288, allocations: 0 / 1.403 GB, free: 10.93 MB / 0.8386 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003232/0.7291, allocations: 237.5 kB / 1.403 GB, free: 10.73 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.068e-05/0.7292, allocations: 6.5 kB / 1.403 GB, free: 10.72 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.161e-06/0.7292, allocations: 4 kB / 1.403 GB, free: 10.72 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001227/0.7293, allocations: 24.34 kB / 1.403 GB, free: 10.7 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001784/0.7295, allocations: 54.48 kB / 1.403 GB, free: 10.64 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007921/0.7303, allocations: 1.26 MB / 1.404 GB, free: 9.312 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000142/0.7304, allocations: 19.69 kB / 1.404 GB, free: 9.293 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.416e-05/0.7305, allocations: 11.75 kB / 1.404 GB, free: 9.285 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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): 26 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.088e-05/0.7305, allocations: 108.9 kB / 1.404 GB, free: 9.172 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.35e-05/0.7306, allocations: 19.72 kB / 1.404 GB, free: 9.152 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.621e-05/0.7306, allocations: 26.52 kB / 1.404 GB, free: 9.137 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.723e-06/0.7306, allocations: 0 / 1.404 GB, free: 9.137 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.695e-06/0.7306, allocations: 4.094 kB / 1.404 GB, free: 9.133 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.945e-06/0.7307, allocations: 0 / 1.404 GB, free: 9.133 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000678/0.7313, allocations: 0.6465 MB / 1.405 GB, free: 8.492 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.057e-06/0.7313, allocations: 3.906 kB / 1.405 GB, free: 8.488 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.452e-05/0.7314, allocations: 31.08 kB / 1.405 GB, free: 8.461 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.985e-05/0.7315, allocations: 32.28 kB / 1.405 GB, free: 8.43 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.088e-05/0.7315, allocations: 4 kB / 1.405 GB, free: 8.426 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007023/0.7323, allocations: 1.245 MB / 1.406 GB, free: 7.098 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.7323, allocations: 0 / 1.406 GB, free: 7.098 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00028/0.7326, allocations: 372.5 kB / 1.407 GB, free: 6.699 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 8.378e-05/0.7326, allocations: 116.6 kB / 1.407 GB, free: 6.574 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.01e-05/0.7327, allocations: 7.984 kB / 1.407 GB, free: 6.566 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001542/0.7328, allocations: 8 kB / 1.407 GB, free: 6.559 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.062e-05/0.7329, allocations: 15.89 kB / 1.407 GB, free: 6.543 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.113e-05/0.7329, allocations: 10.88 kB / 1.407 GB, free: 6.535 MB / 0.8386 GB Notification: Performance of sort global known variables: time 9.779e-05/0.733, allocations: 150.6 kB / 1.407 GB, free: 6.41 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003327/0.7333, allocations: 71.75 kB / 1.407 GB, free: 6.34 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 13 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.481e-05/0.7334, allocations: 107 kB / 1.407 GB, free: 6.23 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0003497/0.7338, allocations: 248.4 kB / 1.407 GB, free: 6.016 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.7338, allocations: 0 / 1.407 GB, free: 6.016 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001703/0.734, allocations: 178.9 kB / 1.407 GB, free: 5.848 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002886/0.7343, allocations: 40.95 kB / 1.408 GB, free: 5.816 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005622/0.7348, allocations: 372.4 kB / 1.408 GB, free: 5.441 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003245/0.7352, allocations: 0.8182 MB / 1.409 GB, free: 4.605 MB / 0.8386 GB Notification: Performance of SimCode: time 2.5e-07/0.7352, allocations: 0 / 1.409 GB, free: 4.605 MB / 0.8386 GB Notification: Performance of Templates: time 0.004694/0.7399, allocations: 2.354 MB / 1.411 GB, free: 2.281 MB / 0.8386 GB make -j1 -f Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.makefile (rm -f Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.sim & ./Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_DC_Loads_Examples_Resistor.csv","../files/Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches