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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.001526/0.001526, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001644/0.001644, allocations: 191.1 kB / 16.25 MB, free: 6.633 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.453/1.453, allocations: 222.9 MB / 239.9 MB, free: 4.539 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.905/2.905, allocations: 472.6 MB / 0.7448 GB, free: 4.891 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001417/0.001417, allocations: 69.23 kB / 0.9116 GB, free: 33.55 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3428/0.3442, allocations: 159.9 MB / 1.068 GB, free: 10.79 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.005632/0.3499, allocations: 3.132 MB / 1.071 GB, free: 7.637 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002548/0.3525, allocations: 1.313 MB / 1.072 GB, free: 6.316 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002117/0.3527, allocations: 7.938 kB / 1.072 GB, free: 6.309 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.001181/0.354, allocations: 318.2 kB / 1.072 GB, free: 6 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0004784/0.3545, allocations: 127.4 kB / 1.072 GB, free: 5.875 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004284/0.3549, allocations: 123.7 kB / 1.073 GB, free: 5.754 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0004927/0.3554, allocations: 307 kB / 1.073 GB, free: 5.453 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005653/0.356, allocations: 268.5 kB / 1.073 GB, free: 5.191 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002244/0.3562, allocations: 119.5 kB / 1.073 GB, free: 5.074 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003312/0.3566, allocations: 147.5 kB / 1.073 GB, free: 4.93 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.569e-05/0.3566, allocations: 20 kB / 1.073 GB, free: 4.91 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003171/0.3569, allocations: 159.7 kB / 1.074 GB, free: 4.754 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001011/0.357, allocations: 83.78 kB / 1.074 GB, free: 4.672 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001274/0.3572, allocations: 107.5 kB / 1.074 GB, free: 4.566 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0004555/0.3576, allocations: 350.9 kB / 1.074 GB, free: 4.223 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.3577, allocations: 4 kB / 1.074 GB, free: 4.219 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.513e-06/0.3577, allocations: 0 / 1.074 GB, free: 4.219 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 8.586e-06/0.3577, allocations: 0 / 1.074 GB, free: 4.219 MB / 0.8262 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.0009271/0.3586, allocations: 0.5223 MB / 1.075 GB, free: 3.645 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.086e-05/0.3587, allocations: 8.031 kB / 1.075 GB, free: 3.637 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006401/0.3593, allocations: 76.58 kB / 1.075 GB, free: 3.562 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003184/0.3596, allocations: 245.5 kB / 1.075 GB, free: 3.285 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.736e-05/0.3597, allocations: 12.75 kB / 1.075 GB, free: 3.273 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.814e-05/0.3597, allocations: 20.38 kB / 1.075 GB, free: 3.254 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004814/0.3602, allocations: 299.3 kB / 1.075 GB, free: 2.941 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.21e-05/0.3602, allocations: 0 / 1.075 GB, free: 2.941 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.125e-05/0.3603, allocations: 12 kB / 1.075 GB, free: 2.93 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.053e-05/0.3603, allocations: 20.36 kB / 1.075 GB, free: 2.91 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003688/0.3607, allocations: 193 kB / 1.075 GB, free: 2.723 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001744/0.3624, allocations: 1.468 MB / 1.077 GB, free: 1.09 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002456/0.3627, allocations: 175.7 kB / 1.077 GB, free: 0.8906 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.91e-05/0.3628, allocations: 32.84 kB / 1.077 GB, free: 0.8555 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 9.838e-06/0.3628, allocations: 0 / 1.077 GB, free: 0.8555 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.496e-05/0.3628, allocations: 38.56 kB / 1.077 GB, free: 0.8086 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 2.565e-06/0.3628, allocations: 4 kB / 1.077 GB, free: 0.8047 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0005267/0.3634, allocations: 227.4 kB / 1.077 GB, free: 0.5547 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.845e-05/0.3634, allocations: 55.41 kB / 1.077 GB, free: 500 kB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002007/0.3636, allocations: 206.7 kB / 1.078 GB, free: 284 kB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.704e-05/0.3636, allocations: 25.7 kB / 1.078 GB, free: 252 kB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 9.632e-05/0.3637, allocations: 163.6 kB / 1.078 GB, free: 84 kB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.457e-05/0.3638, allocations: 23.66 kB / 1.078 GB, free: 60 kB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.76e-05/0.3638, allocations: 41.7 kB / 1.078 GB, free: 12 kB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001311/0.364, allocations: 326.8 kB / 1.078 GB, free: 15.68 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.663e-05/0.364, allocations: 35.98 kB / 1.078 GB, free: 15.64 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001639/0.3642, allocations: 96.62 kB / 1.078 GB, free: 15.52 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001739/0.3644, allocations: 156.4 kB / 1.078 GB, free: 15.34 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.158e-06/0.3644, allocations: 4 kB / 1.078 GB, free: 15.33 MB / 0.8419 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003718/0.3648, allocations: 190 kB / 1.079 GB, free: 15.14 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.639e-05/0.3648, allocations: 4 kB / 1.079 GB, free: 15.13 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.234e-06/0.3648, allocations: 8.281 kB / 1.079 GB, free: 15.12 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001604/0.365, allocations: 24.84 kB / 1.079 GB, free: 15.1 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001107/0.3651, allocations: 31.92 kB / 1.079 GB, free: 15.07 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001094/0.3662, allocations: 1.415 MB / 1.08 GB, free: 13.5 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001319/0.3664, allocations: 15.84 kB / 1.08 GB, free: 13.49 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.674e-05/0.3664, allocations: 8 kB / 1.08 GB, free: 13.48 MB / 0.8419 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.0001606/0.3665, allocations: 149.9 kB / 1.08 GB, free: 13.32 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.488e-05/0.3666, allocations: 15.81 kB / 1.08 GB, free: 13.31 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.599e-05/0.3666, allocations: 21.39 kB / 1.08 GB, free: 13.29 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/0.3666, allocations: 0 / 1.08 GB, free: 13.29 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.046e-06/0.3667, allocations: 0 / 1.08 GB, free: 13.29 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.364e-06/0.3667, allocations: 0 / 1.08 GB, free: 13.29 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005876/0.3673, allocations: 451.1 kB / 1.081 GB, free: 12.8 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.3673, allocations: 4 kB / 1.081 GB, free: 12.79 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.88e-05/0.3673, allocations: 4 kB / 1.081 GB, free: 12.79 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.112e-05/0.3674, allocations: 28.78 kB / 1.081 GB, free: 12.76 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.907e-06/0.3674, allocations: 0 / 1.081 GB, free: 12.76 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001191/0.3686, allocations: 1.418 MB / 1.082 GB, free: 11.2 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.916e-06/0.3686, allocations: 0 / 1.082 GB, free: 11.2 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002463/0.3689, allocations: 224.6 kB / 1.082 GB, free: 10.96 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 9.065e-05/0.369, allocations: 96.91 kB / 1.082 GB, free: 10.85 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.347e-05/0.369, allocations: 4 kB / 1.082 GB, free: 10.85 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000119/0.3692, allocations: 3.938 kB / 1.082 GB, free: 10.84 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.047e-05/0.3692, allocations: 7.984 kB / 1.082 GB, free: 10.84 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.492e-06/0.3692, allocations: 4 kB / 1.082 GB, free: 10.83 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001302/0.3693, allocations: 144.3 kB / 1.083 GB, free: 10.69 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3693, allocations: 4 kB / 1.083 GB, free: 10.69 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003603/0.3697, allocations: 51.84 kB / 1.083 GB, free: 10.64 MB / 0.8419 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.000145/0.3699, allocations: 105.8 kB / 1.083 GB, free: 10.52 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0004328/0.3703, allocations: 219 kB / 1.083 GB, free: 10.3 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.3703, allocations: 64 / 1.083 GB, free: 10.3 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001965/0.3705, allocations: 146.7 kB / 1.083 GB, free: 10.14 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003846/0.3709, allocations: 35.42 kB / 1.083 GB, free: 10.11 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006881/0.3716, allocations: 434.5 kB / 1.084 GB, free: 9.66 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003261/0.372, allocations: 0.7436 MB / 1.084 GB, free: 8.891 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.000104/0.3721, allocations: 29.52 kB / 1.084 GB, free: 8.863 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.211e-05/0.3721, allocations: 15.44 kB / 1.084 GB, free: 8.848 MB / 0.8419 GB Notification: Performance of SimCode: time 3e-07/0.3721, allocations: 0 / 1.084 GB, free: 8.848 MB / 0.8419 GB Notification: Performance of Templates: time 0.004992/0.3771, allocations: 1.752 MB / 1.086 GB, free: 7.117 MB / 0.8419 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/jenkins/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