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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.0015/0.0015, allocations: 107.3 kB / 16.41 MB, free: 6.406 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.001549/0.001549, allocations: 191.4 kB / 17.34 MB, free: 5.695 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.432/1.432, allocations: 222.9 MB / 241 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.694/2.694, allocations: 461.9 MB / 0.7355 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001481/0.001481, allocations: 67.89 kB / 1.055 GB, free: 7.676 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8624/0.8639, allocations: 157.4 MB / 1.208 GB, free: 13.61 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.005424/0.8694, allocations: 3.069 MB / 1.211 GB, free: 10.53 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.002957/0.8724, allocations: 1.328 MB / 1.213 GB, free: 9.191 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003135/0.8727, allocations: 11.94 kB / 1.213 GB, free: 9.18 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.001373/0.8741, allocations: 334.7 kB / 1.213 GB, free: 8.852 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0005444/0.8747, allocations: 139.3 kB / 1.213 GB, free: 8.715 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005512/0.8752, allocations: 143.6 kB / 1.213 GB, free: 8.574 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0005652/0.8758, allocations: 299 kB / 1.214 GB, free: 8.281 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005267/0.8763, allocations: 240.3 kB / 1.214 GB, free: 8.043 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000276/0.8766, allocations: 127.5 kB / 1.214 GB, free: 7.918 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004733/0.8771, allocations: 143.5 kB / 1.214 GB, free: 7.777 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 5.355e-05/0.8772, allocations: 20 kB / 1.214 GB, free: 7.758 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004316/0.8776, allocations: 163.7 kB / 1.214 GB, free: 7.598 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.000143/0.8778, allocations: 75.8 kB / 1.214 GB, free: 7.523 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0001864/0.878, allocations: 119.5 kB / 1.214 GB, free: 7.406 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0006421/0.8786, allocations: 336.6 kB / 1.215 GB, free: 7.082 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 5.209e-06/0.8786, allocations: 0 / 1.215 GB, free: 7.082 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.893e-06/0.8786, allocations: 0 / 1.215 GB, free: 7.082 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.572e-05/0.8787, allocations: 0 / 1.215 GB, free: 7.082 MB / 0.9356 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.001028/0.8797, allocations: 0.5146 MB / 1.215 GB, free: 6.516 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.86e-05/0.8797, allocations: 12.03 kB / 1.215 GB, free: 6.504 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006868/0.8804, allocations: 84.58 kB / 1.215 GB, free: 6.422 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003684/0.8808, allocations: 245.5 kB / 1.216 GB, free: 6.145 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.978e-05/0.8808, allocations: 12.75 kB / 1.216 GB, free: 6.133 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.728e-05/0.8809, allocations: 16.38 kB / 1.216 GB, free: 6.117 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004799/0.8814, allocations: 307.5 kB / 1.216 GB, free: 5.797 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.351e-05/0.8814, allocations: 0 / 1.216 GB, free: 5.797 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.059e-05/0.8814, allocations: 8 kB / 1.216 GB, free: 5.789 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.857e-05/0.8815, allocations: 16.38 kB / 1.216 GB, free: 5.773 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003378/0.8818, allocations: 200.9 kB / 1.216 GB, free: 5.578 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001647/0.8835, allocations: 1.444 MB / 1.218 GB, free: 3.969 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002824/0.8838, allocations: 179.7 kB / 1.218 GB, free: 3.766 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.234e-05/0.8838, allocations: 32.84 kB / 1.218 GB, free: 3.73 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 8.627e-06/0.8839, allocations: 0 / 1.218 GB, free: 3.73 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.126e-05/0.8839, allocations: 38.55 kB / 1.218 GB, free: 3.684 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=7): time 1.122e-06/0.8839, allocations: 0 / 1.218 GB, free: 3.684 MB / 0.9356 GB Notification: Performance of matching and sorting (n=7): time 0.0005212/0.8844, allocations: 235.7 kB / 1.218 GB, free: 3.426 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.826e-05/0.8845, allocations: 51.41 kB / 1.218 GB, free: 3.363 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002063/0.8847, allocations: 202.2 kB / 1.218 GB, free: 3.156 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 3.29e-05/0.8847, allocations: 29.7 kB / 1.218 GB, free: 3.121 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001015/0.8848, allocations: 159.6 kB / 1.218 GB, free: 2.961 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.494e-05/0.8849, allocations: 27.64 kB / 1.218 GB, free: 2.934 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.866e-05/0.885, allocations: 33.72 kB / 1.218 GB, free: 2.895 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001364/0.8851, allocations: 326.8 kB / 1.219 GB, free: 2.566 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.104e-05/0.8852, allocations: 43.91 kB / 1.219 GB, free: 2.523 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001131/0.8853, allocations: 102.2 kB / 1.219 GB, free: 2.395 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001709/0.8855, allocations: 144.5 kB / 1.219 GB, free: 2.223 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.8855, allocations: 4 kB / 1.219 GB, free: 2.219 MB / 0.9356 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003268/0.8858, allocations: 186.1 kB / 1.219 GB, free: 2.027 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 3.534e-05/0.8859, allocations: 8 kB / 1.219 GB, free: 2.02 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.546e-06/0.8859, allocations: 80 / 1.219 GB, free: 2.02 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001891/0.8861, allocations: 29.16 kB / 1.219 GB, free: 1.988 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001241/0.8862, allocations: 35.92 kB / 1.219 GB, free: 1.953 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001174/0.8874, allocations: 1.418 MB / 1.221 GB, free: 400 kB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001338/0.8875, allocations: 23.77 kB / 1.221 GB, free: 376 kB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.207e-05/0.8876, allocations: 8 kB / 1.221 GB, free: 368 kB / 0.9356 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001483/0.8877, allocations: 145.7 kB / 1.221 GB, free: 212 kB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.143e-05/0.8878, allocations: 15.81 kB / 1.221 GB, free: 196 kB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.182e-05/0.8878, allocations: 21.5 kB / 1.221 GB, free: 180 kB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.947e-06/0.8878, allocations: 3.984 kB / 1.221 GB, free: 176 kB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.8878, allocations: 4.062 kB / 1.221 GB, free: 172 kB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.521e-06/0.8878, allocations: 4.094 kB / 1.221 GB, free: 168 kB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005577/0.8884, allocations: 443.2 kB / 1.221 GB, free: 15.67 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/0.8884, allocations: 0 / 1.221 GB, free: 15.67 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.115e-05/0.8885, allocations: 11.98 kB / 1.221 GB, free: 15.66 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.221e-05/0.8885, allocations: 20.84 kB / 1.221 GB, free: 15.64 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.367e-06/0.8886, allocations: 4 kB / 1.221 GB, free: 15.63 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001055/0.8896, allocations: 1.418 MB / 1.223 GB, free: 14.08 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.8896, allocations: 0 / 1.223 GB, free: 14.08 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002548/0.8899, allocations: 216.1 kB / 1.223 GB, free: 13.85 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 7.579e-05/0.89, allocations: 104.8 kB / 1.223 GB, free: 13.73 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.104e-05/0.89, allocations: 3.984 kB / 1.223 GB, free: 13.72 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001128/0.8901, allocations: 8.062 kB / 1.223 GB, free: 13.71 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.728e-05/0.8902, allocations: 0 / 1.223 GB, free: 13.71 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.412e-06/0.8902, allocations: 4 kB / 1.223 GB, free: 13.71 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0001347/0.8903, allocations: 144.9 kB / 1.223 GB, free: 13.57 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.764e-06/0.8903, allocations: 0 / 1.223 GB, free: 13.57 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0003521/0.8907, allocations: 59.78 kB / 1.223 GB, free: 13.51 MB / 0.9512 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001289/0.8908, allocations: 103.2 kB / 1.223 GB, free: 13.4 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0003916/0.8912, allocations: 210.5 kB / 1.224 GB, free: 13.18 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.8912, allocations: 0 / 1.224 GB, free: 13.18 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0001549/0.8914, allocations: 142.7 kB / 1.224 GB, free: 13.03 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003833/0.8918, allocations: 36.53 kB / 1.224 GB, free: 12.99 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006907/0.8925, allocations: 388.4 kB / 1.224 GB, free: 12.58 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003974/0.8929, allocations: 0.7475 MB / 1.225 GB, free: 11.81 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.513e-05/0.8929, allocations: 15.44 kB / 1.225 GB, free: 11.79 MB / 0.9512 GB Notification: Performance of SimCode: time 2.6e-07/0.8929, allocations: 4 kB / 1.225 GB, free: 11.79 MB / 0.9512 GB Notification: Performance of Templates: time 0.005482/0.8984, allocations: 2.985 MB / 1.228 GB, free: 8.816 MB / 0.9512 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches