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/ModelicaServices 4.0.0+maint.om/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/Buildings 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0012/0.0012, allocations: 99 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001501/0.001501, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.466/1.466, allocations: 223.2 MB / 239.9 MB, free: 5.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.867/2.867, allocations: 436.5 MB / 0.7104 GB, free: 7.957 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004054/0.0004054, allocations: 8 kB / 0.8708 GB, free: 4.84 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8402/0.8406, allocations: 153.7 MB / 1.021 GB, free: 1.133 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.003659/0.8443, allocations: 2.595 MB / 1.023 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001982/0.8463, allocations: 1.216 MB / 1.025 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001334/0.8465, allocations: 7.938 kB / 1.025 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0001641/0.8466, allocations: 39.77 kB / 1.025 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0003501/0.847, allocations: 99.73 kB / 1.025 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003225/0.8473, allocations: 99.67 kB / 1.025 GB, free: 13.06 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0002668/0.8476, allocations: 179.5 kB / 1.025 GB, free: 12.88 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003435/0.848, allocations: 211.9 kB / 1.025 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001248/0.8481, allocations: 87.7 kB / 1.025 GB, free: 12.57 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002298/0.8483, allocations: 91.66 kB / 1.025 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.636e-05/0.8484, allocations: 12 kB / 1.025 GB, free: 12.47 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001785/0.8486, allocations: 71.89 kB / 1.025 GB, free: 12.4 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 7.874e-05/0.8486, allocations: 67.81 kB / 1.025 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 5.904e-05/0.8487, allocations: 57.64 kB / 1.026 GB, free: 12.27 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002959/0.849, allocations: 253.3 kB / 1.026 GB, free: 12.03 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 2.975e-06/0.849, allocations: 3.938 kB / 1.026 GB, free: 12.02 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.625e-06/0.849, allocations: 0 / 1.026 GB, free: 12.02 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.791e-06/0.849, allocations: 0 / 1.026 GB, free: 12.02 MB / 0.7794 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.0007495/0.8498, allocations: 487 kB / 1.026 GB, free: 11.5 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.94e-05/0.8498, allocations: 15.98 kB / 1.026 GB, free: 11.48 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006394/0.8505, allocations: 79.64 kB / 1.026 GB, free: 11.4 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003006/0.8508, allocations: 242.6 kB / 1.027 GB, free: 11.12 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.366e-05/0.8508, allocations: 20.36 kB / 1.027 GB, free: 11.11 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.974e-05/0.8509, allocations: 20 kB / 1.027 GB, free: 11.09 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004234/0.8513, allocations: 298.9 kB / 1.027 GB, free: 10.77 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.068e-05/0.8513, allocations: 0 / 1.027 GB, free: 10.77 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.597e-05/0.8514, allocations: 8 kB / 1.027 GB, free: 10.76 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.713e-05/0.8514, allocations: 20.38 kB / 1.027 GB, free: 10.74 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002927/0.8517, allocations: 204.8 kB / 1.027 GB, free: 10.54 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00149/0.8532, allocations: 1.46 MB / 1.029 GB, free: 8.918 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002845/0.8535, allocations: 179.7 kB / 1.029 GB, free: 8.715 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 8.486e-06/0.8535, allocations: 0 / 1.029 GB, free: 8.715 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.549e-05/0.8536, allocations: 34.55 kB / 1.029 GB, free: 8.672 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 9.91e-07/0.8536, allocations: 0 / 1.029 GB, free: 8.672 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0004876/0.8541, allocations: 239.5 kB / 1.029 GB, free: 8.41 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.33e-05/0.8541, allocations: 51.41 kB / 1.029 GB, free: 8.348 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001798/0.8543, allocations: 195.6 kB / 1.029 GB, free: 8.148 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.282e-05/0.8543, allocations: 25.7 kB / 1.029 GB, free: 8.117 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 9.329e-05/0.8544, allocations: 163.6 kB / 1.029 GB, free: 7.953 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.147e-05/0.8544, allocations: 27.55 kB / 1.029 GB, free: 7.926 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.925e-06/0.8545, allocations: 8 kB / 1.029 GB, free: 7.918 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001318/0.8546, allocations: 330.8 kB / 1.03 GB, free: 7.586 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.421e-05/0.8547, allocations: 31.98 kB / 1.03 GB, free: 7.555 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001013/0.8548, allocations: 102.4 kB / 1.03 GB, free: 7.426 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.742e-05/0.8548, allocations: 47.98 kB / 1.03 GB, free: 7.379 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.085e-06/0.8549, allocations: 4 kB / 1.03 GB, free: 7.375 MB / 0.7794 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002813/0.8551, allocations: 186.3 kB / 1.03 GB, free: 7.184 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.684e-05/0.8552, allocations: 4 kB / 1.03 GB, free: 7.18 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.983e-06/0.8552, allocations: 4 kB / 1.03 GB, free: 7.176 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001444/0.8553, allocations: 24.84 kB / 1.03 GB, free: 7.148 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001045/0.8554, allocations: 31.92 kB / 1.03 GB, free: 7.117 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001008/0.8565, allocations: 1.319 MB / 1.031 GB, free: 5.664 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001151/0.8566, allocations: 23.7 kB / 1.031 GB, free: 5.641 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.206e-05/0.8566, allocations: 8 kB / 1.031 GB, free: 5.633 MB / 0.7794 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 () * Number of clocked 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 0.0001408/0.8568, allocations: 151.3 kB / 1.032 GB, free: 5.477 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.579e-05/0.8568, allocations: 11.91 kB / 1.032 GB, free: 5.465 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.107e-05/0.8568, allocations: 21.39 kB / 1.032 GB, free: 5.445 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.572e-06/0.8568, allocations: 96 / 1.032 GB, free: 5.445 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.745e-06/0.8568, allocations: 3.938 kB / 1.032 GB, free: 5.441 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.154e-06/0.8568, allocations: 0 / 1.032 GB, free: 5.441 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005241/0.8574, allocations: 451.1 kB / 1.032 GB, free: 4.941 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.8574, allocations: 0 / 1.032 GB, free: 4.941 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.515e-05/0.8574, allocations: 8 kB / 1.032 GB, free: 4.934 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.597e-05/0.8575, allocations: 28.88 kB / 1.032 GB, free: 4.902 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.167e-06/0.8575, allocations: 3.953 kB / 1.032 GB, free: 4.898 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009111/0.8584, allocations: 1.323 MB / 1.033 GB, free: 3.441 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.8585, allocations: 0 / 1.033 GB, free: 3.441 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002038/0.8587, allocations: 216.1 kB / 1.034 GB, free: 3.211 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 8.299e-05/0.8588, allocations: 100.8 kB / 1.034 GB, free: 3.094 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.089e-05/0.8588, allocations: 7.984 kB / 1.034 GB, free: 3.086 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001028/0.8589, allocations: 8.188 kB / 1.034 GB, free: 3.078 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.581e-05/0.8589, allocations: 0 / 1.034 GB, free: 3.078 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.595e-06/0.8589, allocations: 4 kB / 1.034 GB, free: 3.074 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001321/0.8591, allocations: 144.3 kB / 1.034 GB, free: 2.934 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8591, allocations: 0 / 1.034 GB, free: 2.934 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003244/0.8594, allocations: 47.91 kB / 1.034 GB, free: 2.887 MB / 0.7794 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 () * Number of clocked 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 0.0001186/0.8595, allocations: 111.2 kB / 1.034 GB, free: 2.77 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003409/0.8599, allocations: 202.5 kB / 1.034 GB, free: 2.559 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.095e-06/0.8599, allocations: 0 / 1.034 GB, free: 2.559 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.000149/0.86, allocations: 146.7 kB / 1.034 GB, free: 2.402 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002731/0.8603, allocations: 32.72 kB / 1.034 GB, free: 2.371 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005785/0.8609, allocations: 415.4 kB / 1.035 GB, free: 1.938 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003235/0.8612, allocations: 0.7556 MB / 1.035 GB, free: 1.156 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 9.072e-05/0.8613, allocations: 22.16 kB / 1.036 GB, free: 1.133 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.107e-05/0.8614, allocations: 15.44 kB / 1.036 GB, free: 1.117 MB / 0.7794 GB Notification: Performance of SimCode: time 2.1e-07/0.8614, allocations: 7.938 kB / 1.036 GB, free: 1.109 MB / 0.7794 GB Notification: Performance of Templates: time 0.004154/0.8655, allocations: 1.624 MB / 1.037 GB, free: 15.51 MB / 0.795 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