Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.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.Lines.Examples.Resistance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I",fileNamePrefix="Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance") translateModel(Buildings.Electrical.DC.Lines.Examples.Resistance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I",fileNamePrefix="Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance") [: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.713/1.713, allocations: 390.4 MB / 397.7 MB, free: 11.25 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.0008922/0.0008922, allocations: 182.5 kB / 490.8 MB, free: 1.91 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.057/1.057, allocations: 221.3 MB / 0.7863 GB, free: 13.63 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.0008059/0.0008059, allocations: 96.67 kB / 0.9264 GB, free: 14.16 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 5.981e-06/6.071e-06, allocations: 4 kB / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1637/0.1637, allocations: 143 MB / 1.212 GB, free: 40.07 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4561/0.6199, allocations: 175.6 MB / 1.383 GB, free: 17.07 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002085/0.6201, allocations: 87.02 kB / 1.383 GB, free: 17.07 MB / 0.823 GB [/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/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/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.02699/0.6471, allocations: 14.46 MB / 1.397 GB, free: 11.39 MB / 0.823 GB Notification: Performance of Transformations before backend: time 1.195e-05/0.6472, allocations: 4.125 kB / 1.397 GB, free: 11.39 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0004814/0.6476, allocations: 472.3 kB / 1.398 GB, free: 26.95 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.111e-05/0.6477, allocations: 12.78 kB / 1.398 GB, free: 26.95 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005775/0.6483, allocations: 79.23 kB / 1.398 GB, free: 26.92 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002526/0.6485, allocations: 251.2 kB / 1.398 GB, free: 26.68 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.181e-05/0.6485, allocations: 5.438 kB / 1.398 GB, free: 26.68 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.769e-05/0.6486, allocations: 10.66 kB / 1.398 GB, free: 26.68 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002652/0.6488, allocations: 169.4 kB / 1.398 GB, free: 26.67 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003227/0.6492, allocations: 265.4 kB / 1.398 GB, free: 26.55 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.768e-06/0.6492, allocations: 0 / 1.398 GB, free: 26.55 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.129e-05/0.6492, allocations: 9.438 kB / 1.398 GB, free: 26.54 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.529e-05/0.6493, allocations: 12.06 kB / 1.398 GB, free: 26.54 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001057/0.6503, allocations: 1.419 MB / 1.4 GB, free: 25.25 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001495/0.6505, allocations: 85.67 kB / 1.4 GB, free: 25.22 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.622e-05/0.6505, allocations: 32.98 kB / 1.4 GB, free: 25.21 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 9.898e-06/0.6505, allocations: 0.75 kB / 1.4 GB, free: 25.21 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.199e-05/0.6506, allocations: 35.88 kB / 1.4 GB, free: 25.17 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=7): time 1.122e-06/0.6506, allocations: 4.656 kB / 1.4 GB, free: 25.16 MB / 0.8386 GB Notification: Performance of matching and sorting (n=7): time 0.0002303/0.6508, allocations: 113.2 kB / 1.4 GB, free: 25.11 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.125e-05/0.6508, allocations: 52.38 kB / 1.4 GB, free: 25.04 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001287/0.651, allocations: 162.1 kB / 1.4 GB, free: 24.94 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 8.065e-06/0.651, allocations: 25.7 kB / 1.4 GB, free: 24.91 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 5.166e-05/0.651, allocations: 161.8 kB / 1.401 GB, free: 24.77 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.318e-05/0.651, allocations: 26.64 kB / 1.401 GB, free: 24.75 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.23e-06/0.6511, allocations: 0 / 1.401 GB, free: 24.75 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 7.339e-05/0.6511, allocations: 325.5 kB / 1.401 GB, free: 24.43 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.248e-05/0.6512, allocations: 31.66 kB / 1.401 GB, free: 24.43 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.787e-05/0.6513, allocations: 98.27 kB / 1.401 GB, free: 24.34 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.938e-05/0.6513, allocations: 54.88 kB / 1.401 GB, free: 24.32 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.6513, allocations: 4.594 kB / 1.401 GB, free: 24.32 MB / 0.8386 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002507/0.6516, allocations: 170.9 kB / 1.401 GB, free: 24.25 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 9.127e-06/0.6516, allocations: 5.094 kB / 1.401 GB, free: 24.25 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.075e-06/0.6516, allocations: 2 kB / 1.401 GB, free: 24.25 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001223/0.6518, allocations: 25.56 kB / 1.401 GB, free: 24.23 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000109/0.6519, allocations: 29.95 kB / 1.401 GB, free: 24.23 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007768/0.6527, allocations: 1.253 MB / 1.402 GB, free: 22.99 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001069/0.6528, allocations: 12.81 kB / 1.402 GB, free: 22.98 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.402e-05/0.6528, allocations: 6.719 kB / 1.403 GB, free: 22.98 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 16 * 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 5.939e-05/0.6529, allocations: 117.9 kB / 1.403 GB, free: 22.87 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.588e-05/0.6529, allocations: 10.5 kB / 1.403 GB, free: 22.86 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.458e-05/0.6529, allocations: 18.69 kB / 1.403 GB, free: 22.86 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/0.6529, allocations: 1.281 kB / 1.403 GB, free: 22.86 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.908e-06/0.6529, allocations: 8.547 kB / 1.403 GB, free: 22.85 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.653, allocations: 4.688 kB / 1.403 GB, free: 22.84 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001683/0.6531, allocations: 213 kB / 1.403 GB, free: 22.66 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.6531, allocations: 0.6562 kB / 1.403 GB, free: 22.66 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.266e-05/0.6532, allocations: 14.45 kB / 1.403 GB, free: 22.65 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.927e-05/0.6533, allocations: 22.12 kB / 1.403 GB, free: 22.64 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.792e-06/0.6533, allocations: 4.719 kB / 1.403 GB, free: 22.64 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006601/0.6539, allocations: 1.24 MB / 1.404 GB, free: 21.41 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.422e-06/0.654, allocations: 0.8438 kB / 1.404 GB, free: 21.41 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001872/0.6541, allocations: 210.2 kB / 1.404 GB, free: 21.24 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 5.452e-05/0.6542, allocations: 103 kB / 1.404 GB, free: 21.13 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.933e-05/0.6542, allocations: 0.5938 kB / 1.404 GB, free: 21.13 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001041/0.6543, allocations: 6.625 kB / 1.404 GB, free: 21.13 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.387e-05/0.6544, allocations: 0 / 1.404 GB, free: 21.13 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.512e-06/0.6544, allocations: 7.562 kB / 1.404 GB, free: 21.12 MB / 0.8386 GB Notification: Performance of sort global known variables: time 6.834e-05/0.6544, allocations: 126.4 kB / 1.405 GB, free: 21.02 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002593/0.6547, allocations: 51.84 kB / 1.405 GB, free: 20.96 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 5 * 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 6.969e-05/0.6548, allocations: 105.1 kB / 1.405 GB, free: 20.86 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0002342/0.655, allocations: 194.7 kB / 1.405 GB, free: 20.68 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.655, allocations: 0 / 1.405 GB, free: 20.68 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001067/0.6551, allocations: 136 kB / 1.405 GB, free: 20.55 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002004/0.6554, allocations: 30.45 kB / 1.405 GB, free: 20.53 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003305/0.6557, allocations: 216.7 kB / 1.405 GB, free: 20.32 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002383/0.6559, allocations: 0.7663 MB / 1.406 GB, free: 19.53 MB / 0.8386 GB Notification: Performance of SimCode: time 2.3e-07/0.656, allocations: 0 / 1.406 GB, free: 19.53 MB / 0.8386 GB Notification: Performance of Templates: time 0.003083/0.659, allocations: 1.585 MB / 1.408 GB, free: 17.98 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.makefile (rm -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.sim & ./Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_DC_Lines_Examples_Resistance.csv","../files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches