Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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_9_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_9_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.001182/0.001183, allocations: 106.3 kB / 16.36 MB, free: 6.289 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.001297/0.001297, allocations: 192.5 kB / 17.29 MB, free: 5.863 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.342/1.342, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.223/2.223, allocations: 390.3 MB / 0.6655 GB, free: 0.5781 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001189/0.001189, allocations: 67.44 kB / 0.814 GB, free: 32.64 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2758/0.277, allocations: 140.4 MB / 0.9511 GB, free: 8.023 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.005367/0.2824, allocations: 3.067 MB / 0.9541 GB, free: 4.945 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.002126/0.2846, allocations: 1.336 MB / 0.9554 GB, free: 3.602 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000123/0.2847, allocations: 11.94 kB / 0.9554 GB, free: 3.59 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0009639/0.2857, allocations: 330.7 kB / 0.9557 GB, free: 3.266 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0003099/0.286, allocations: 139.3 kB / 0.9559 GB, free: 3.129 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003318/0.2864, allocations: 131.6 kB / 0.956 GB, free: 3 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0003861/0.2868, allocations: 311 kB / 0.9563 GB, free: 2.695 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004684/0.2872, allocations: 232.3 kB / 0.9565 GB, free: 2.461 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001483/0.2874, allocations: 127.5 kB / 0.9566 GB, free: 2.336 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003193/0.2877, allocations: 131.5 kB / 0.9568 GB, free: 2.207 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 3.83e-05/0.2878, allocations: 20 kB / 0.9568 GB, free: 2.188 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002889/0.2881, allocations: 167.6 kB / 0.9569 GB, free: 2.023 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 9.879e-05/0.2882, allocations: 79.8 kB / 0.957 GB, free: 1.945 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0001345/0.2883, allocations: 119.5 kB / 0.9571 GB, free: 1.828 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0004273/0.2887, allocations: 327 kB / 0.9574 GB, free: 1.508 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.2888, allocations: 3.938 kB / 0.9575 GB, free: 1.504 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.994e-06/0.2888, allocations: 0 / 0.9575 GB, free: 1.504 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.261e-05/0.2888, allocations: 0 / 0.9575 GB, free: 1.504 MB / 0.7325 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.0008859/0.2897, allocations: 0.5185 MB / 0.958 GB, free: 0.9336 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.689e-05/0.2897, allocations: 12.03 kB / 0.958 GB, free: 0.9219 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005809/0.2903, allocations: 76.59 kB / 0.958 GB, free: 0.8477 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003415/0.2907, allocations: 253.7 kB / 0.9583 GB, free: 0.5625 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.307e-05/0.2907, allocations: 16.75 kB / 0.9583 GB, free: 0.5469 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.162e-05/0.2907, allocations: 20.38 kB / 0.9583 GB, free: 0.5273 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004493/0.2912, allocations: 307.2 kB / 0.9586 GB, free: 212 kB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.443e-05/0.2912, allocations: 3.984 kB / 0.9586 GB, free: 208 kB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.399e-05/0.2912, allocations: 4 kB / 0.9586 GB, free: 204 kB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.197e-05/0.2913, allocations: 16.38 kB / 0.9586 GB, free: 188 kB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003012/0.2916, allocations: 196.9 kB / 0.9588 GB, free: 15.99 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001499/0.2931, allocations: 1.46 MB / 0.9602 GB, free: 14.37 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002536/0.2934, allocations: 183.7 kB / 0.9604 GB, free: 14.16 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.535e-05/0.2934, allocations: 32.83 kB / 0.9605 GB, free: 14.13 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 1.02e-05/0.2934, allocations: 4 kB / 0.9605 GB, free: 14.12 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.88e-05/0.2935, allocations: 30.56 kB / 0.9605 GB, free: 14.09 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=7): time 1.333e-06/0.2935, allocations: 0 / 0.9605 GB, free: 14.09 MB / 0.7481 GB Notification: Performance of matching and sorting (n=7): time 0.0004705/0.294, allocations: 235.5 kB / 0.9607 GB, free: 13.83 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.841e-05/0.294, allocations: 55.41 kB / 0.9608 GB, free: 13.76 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001813/0.2942, allocations: 190.4 kB / 0.9609 GB, free: 13.57 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 1.814e-05/0.2942, allocations: 29.7 kB / 0.961 GB, free: 13.53 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 9.705e-05/0.2943, allocations: 163.6 kB / 0.9611 GB, free: 13.37 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 2.15e-05/0.2943, allocations: 27.64 kB / 0.9612 GB, free: 13.34 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.605e-05/0.2944, allocations: 37.62 kB / 0.9612 GB, free: 13.3 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001243/0.2945, allocations: 330.8 kB / 0.9615 GB, free: 12.96 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.394e-05/0.2946, allocations: 35.98 kB / 0.9615 GB, free: 12.93 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001067/0.2947, allocations: 98.69 kB / 0.9616 GB, free: 12.8 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001745/0.2949, allocations: 144.4 kB / 0.9618 GB, free: 12.63 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.127e-06/0.2949, allocations: 11.94 kB / 0.9618 GB, free: 12.62 MB / 0.7481 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002922/0.2952, allocations: 190 kB / 0.962 GB, free: 12.43 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.608e-05/0.2952, allocations: 4 kB / 0.962 GB, free: 12.42 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/0.2952, allocations: 4 kB / 0.962 GB, free: 12.42 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001728/0.2954, allocations: 29.12 kB / 0.962 GB, free: 12.39 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001048/0.2955, allocations: 31.92 kB / 0.962 GB, free: 12.36 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001105/0.2966, allocations: 1.418 MB / 0.9634 GB, free: 10.8 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001221/0.2968, allocations: 11.84 kB / 0.9634 GB, free: 10.79 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.161e-05/0.2968, allocations: 8 kB / 0.9634 GB, free: 10.78 MB / 0.7481 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.0001306/0.2969, allocations: 159 kB / 0.9636 GB, free: 10.62 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.647e-05/0.297, allocations: 15.81 kB / 0.9636 GB, free: 10.6 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.789e-05/0.297, allocations: 21.5 kB / 0.9636 GB, free: 10.59 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.262e-06/0.297, allocations: 0 / 0.9636 GB, free: 10.59 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.555e-06/0.297, allocations: 0 / 0.9636 GB, free: 10.59 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.639e-06/0.297, allocations: 4.031 kB / 0.9636 GB, free: 10.58 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005298/0.2976, allocations: 447.2 kB / 0.9641 GB, free: 10.09 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.508e-06/0.2976, allocations: 4.062 kB / 0.9641 GB, free: 10.08 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.818e-05/0.2976, allocations: 11.94 kB / 0.9641 GB, free: 10.07 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.233e-05/0.2977, allocations: 24.83 kB / 0.9641 GB, free: 10.04 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.147e-06/0.2977, allocations: 4 kB / 0.9641 GB, free: 10.04 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009951/0.2987, allocations: 1.415 MB / 0.9655 GB, free: 8.477 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.2987, allocations: 0 / 0.9655 GB, free: 8.477 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002231/0.299, allocations: 208.2 kB / 0.9657 GB, free: 8.254 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 8.436e-05/0.2991, allocations: 89 kB / 0.9658 GB, free: 8.148 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.869e-05/0.2991, allocations: 8 kB / 0.9658 GB, free: 8.141 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001068/0.2992, allocations: 8.047 kB / 0.9658 GB, free: 8.133 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.236e-05/0.2992, allocations: 7.938 kB / 0.9658 GB, free: 8.125 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.174e-06/0.2992, allocations: 4 kB / 0.9658 GB, free: 8.121 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0001259/0.2994, allocations: 148.7 kB / 0.9659 GB, free: 7.977 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1e-07/0.2994, allocations: 0 / 0.9659 GB, free: 7.977 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0003257/0.2997, allocations: 51.84 kB / 0.966 GB, free: 7.926 MB / 0.7481 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.0001146/0.2998, allocations: 99.25 kB / 0.9661 GB, free: 7.82 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0003745/0.3002, allocations: 222.5 kB / 0.9663 GB, free: 7.59 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.3002, allocations: 3.938 kB / 0.9663 GB, free: 7.586 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0001499/0.3004, allocations: 142.6 kB / 0.9664 GB, free: 7.434 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003557/0.3007, allocations: 40.69 kB / 0.9665 GB, free: 7.395 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006357/0.3014, allocations: 351.2 kB / 0.9668 GB, free: 7.027 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003604/0.3018, allocations: 0.7513 MB / 0.9675 GB, free: 6.25 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 8.045e-05/0.3019, allocations: 25.53 kB / 0.9676 GB, free: 6.227 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.059e-05/0.3019, allocations: 11.44 kB / 0.9676 GB, free: 6.215 MB / 0.7481 GB Notification: Performance of SimCode: time 2.51e-07/0.3019, allocations: 0 / 0.9676 GB, free: 6.215 MB / 0.7481 GB Notification: Performance of Templates: time 0.005102/0.307, allocations: 1.738 MB / 0.9693 GB, free: 4.496 MB / 0.7481 GB make -j1 -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.makefile (rm -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.sim & ./Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_DC_Lines_Examples_Resistance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches