Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_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_latest_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 10.0.0-master/package.mo): time 1.697/1.697, allocations: 390.4 MB / 397.7 MB, free: 11.3 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.0008997/0.0008997, allocations: 175.7 kB / 490.8 MB, free: 1.992 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.056/1.056, allocations: 221.3 MB / 0.7863 GB, free: 13.77 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008205/0.0008205, allocations: 95.78 kB / 0.9264 GB, free: 14.3 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 5.36e-06/5.38e-06, allocations: 4 kB / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1634/0.1634, allocations: 143 MB / 1.212 GB, free: 40.18 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4638/0.6272, allocations: 175.8 MB / 1.383 GB, free: 17.43 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002087/0.6275, allocations: 86.11 kB / 1.383 GB, free: 17.43 MB / 0.823 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0-master/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 10.0.0-master/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.03907/0.6666, allocations: 21.64 MB / 1.404 GB, free: 6.965 MB / 0.823 GB Notification: Performance of Transformations before backend: time 1.386e-05/0.6666, allocations: 8 kB / 1.404 GB, free: 6.957 MB / 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.0005762/0.6672, allocations: 0.55 MB / 1.405 GB, free: 22.38 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 2.667e-05/0.6672, allocations: 8.031 kB / 1.405 GB, free: 22.37 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009064/0.6681, allocations: 147.3 kB / 1.405 GB, free: 22.23 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003091/0.6685, allocations: 286 kB / 1.405 GB, free: 21.93 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.25e-05/0.6685, allocations: 15.88 kB / 1.405 GB, free: 21.92 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.978e-05/0.6685, allocations: 16 kB / 1.405 GB, free: 21.9 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003432/0.6689, allocations: 287.9 kB / 1.406 GB, free: 21.71 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004009/0.6693, allocations: 409.3 kB / 1.406 GB, free: 21.37 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.176e-05/0.6693, allocations: 11.94 kB / 1.406 GB, free: 21.36 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.677e-05/0.6693, allocations: 0 / 1.406 GB, free: 21.36 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.674e-05/0.6694, allocations: 28.55 kB / 1.406 GB, free: 21.32 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00144/0.6708, allocations: 2.119 MB / 1.408 GB, free: 19.19 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001983/0.671, allocations: 152.3 kB / 1.408 GB, free: 19.07 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001752/0.6712, allocations: 111.6 kB / 1.408 GB, free: 18.98 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.329e-05/0.6712, allocations: 7.906 kB / 1.408 GB, free: 18.98 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.162e-05/0.6712, allocations: 34.12 kB / 1.409 GB, free: 18.94 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=14): time 1.143e-06/0.6712, allocations: 4 kB / 1.409 GB, free: 18.93 MB / 0.8386 GB Notification: Performance of matching and sorting (n=14): time 0.000271/0.6715, allocations: 159.4 kB / 1.409 GB, free: 18.8 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.319e-05/0.6715, allocations: 51.41 kB / 1.409 GB, free: 18.73 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001378/0.6717, allocations: 194.1 kB / 1.409 GB, free: 18.57 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.082e-05/0.6717, allocations: 25.7 kB / 1.409 GB, free: 18.54 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 5.943e-05/0.6718, allocations: 193 kB / 1.409 GB, free: 18.36 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.159e-05/0.6718, allocations: 50.11 kB / 1.409 GB, free: 18.32 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.143e-06/0.6718, allocations: 0 / 1.409 GB, free: 18.32 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 7.687e-05/0.6719, allocations: 333.9 kB / 1.409 GB, free: 17.99 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.819e-05/0.672, allocations: 58.14 kB / 1.41 GB, free: 17.95 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.242e-05/0.672, allocations: 134.7 kB / 1.41 GB, free: 17.8 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.639e-05/0.6721, allocations: 79.7 kB / 1.41 GB, free: 17.75 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.6721, allocations: 0 / 1.41 GB, free: 17.75 MB / 0.8386 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0002768/0.6724, allocations: 237.6 kB / 1.41 GB, free: 17.55 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 8.887e-06/0.6724, allocations: 7.984 kB / 1.41 GB, free: 17.54 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/0.6725, allocations: 4 kB / 1.41 GB, free: 17.54 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001158/0.6726, allocations: 32.53 kB / 1.41 GB, free: 17.5 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001594/0.6727, allocations: 43.92 kB / 1.41 GB, free: 17.46 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007027/0.6734, allocations: 1.261 MB / 1.411 GB, free: 16.13 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001344/0.6736, allocations: 19.69 kB / 1.411 GB, free: 16.11 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.286e-05/0.6736, allocations: 19.19 kB / 1.411 GB, free: 16.09 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 6.194e-05/0.6737, allocations: 104.9 kB / 1.411 GB, free: 15.98 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.811e-05/0.6737, allocations: 23.72 kB / 1.411 GB, free: 15.96 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.105e-05/0.6738, allocations: 27.09 kB / 1.411 GB, free: 15.95 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.6738, allocations: 4 kB / 1.411 GB, free: 15.94 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.6738, allocations: 4 kB / 1.411 GB, free: 15.94 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.6738, allocations: 3.938 kB / 1.411 GB, free: 15.93 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000563/0.6743, allocations: 0.6424 MB / 1.412 GB, free: 15.3 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.845e-06/0.6744, allocations: 4 kB / 1.412 GB, free: 15.3 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.21e-05/0.6744, allocations: 23.3 kB / 1.412 GB, free: 15.28 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.528e-05/0.6745, allocations: 27.56 kB / 1.412 GB, free: 15.25 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.277e-06/0.6745, allocations: 4 kB / 1.412 GB, free: 15.25 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000599/0.6751, allocations: 1.246 MB / 1.413 GB, free: 13.92 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.6752, allocations: 0 / 1.413 GB, free: 13.92 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002338/0.6754, allocations: 375.7 kB / 1.414 GB, free: 13.52 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 6.44e-05/0.6755, allocations: 116.3 kB / 1.414 GB, free: 13.39 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.571e-05/0.6755, allocations: 3.984 kB / 1.414 GB, free: 13.39 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001471/0.6757, allocations: 12 kB / 1.414 GB, free: 13.38 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.157e-05/0.6757, allocations: 10.92 kB / 1.414 GB, free: 13.37 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.257e-06/0.6757, allocations: 11.91 kB / 1.414 GB, free: 13.36 MB / 0.8386 GB Notification: Performance of sort global known variables: time 8.773e-05/0.6758, allocations: 147.1 kB / 1.414 GB, free: 13.24 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003084/0.6761, allocations: 67.84 kB / 1.414 GB, free: 13.17 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 7.436e-05/0.6762, allocations: 107.1 kB / 1.414 GB, free: 13.06 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.000293/0.6765, allocations: 249.6 kB / 1.414 GB, free: 12.84 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.6765, allocations: 0 / 1.414 GB, free: 12.84 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001499/0.6766, allocations: 177.1 kB / 1.415 GB, free: 12.68 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002732/0.6769, allocations: 49.11 kB / 1.415 GB, free: 12.64 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005522/0.6775, allocations: 369.5 kB / 1.415 GB, free: 12.27 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003235/0.6778, allocations: 0.8181 MB / 1.416 GB, free: 11.43 MB / 0.8386 GB Notification: Performance of SimCode: time 3.31e-07/0.6778, allocations: 0 / 1.416 GB, free: 11.43 MB / 0.8386 GB Notification: Performance of Templates: time 0.004504/0.6823, allocations: 2.366 MB / 1.418 GB, free: 9.117 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.makefile (rm -f Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.sim & ./Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_DC_Loads_Examples_Resistor.csv","../files/Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches