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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.001133/0.001133, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001157/0.001157, allocations: 192 kB / 16.14 MB, free: 6.719 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.378/1.378, allocations: 222.9 MB / 239.8 MB, free: 4.59 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.48/2.48, allocations: 390.2 MB / 0.6642 GB, free: 0.6289 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001325/0.001326, allocations: 59.91 kB / 0.8118 GB, free: 14.9 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8354/0.8367, allocations: 140.4 MB / 0.9489 GB, free: 9.199 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.007241/0.844, allocations: 3.131 MB / 0.952 GB, free: 6.789 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.003191/0.8472, allocations: 1.33 MB / 0.9533 GB, free: 5.746 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002851/0.8475, allocations: 4.25 kB / 0.9533 GB, free: 5.746 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.001302/0.8489, allocations: 309 kB / 0.9536 GB, free: 5.52 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0005662/0.8495, allocations: 132.4 kB / 0.9537 GB, free: 5.418 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005083/0.85, allocations: 131 kB / 0.9538 GB, free: 5.324 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0007131/0.8508, allocations: 436.7 kB / 0.9542 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004502/0.8512, allocations: 159.6 kB / 0.9544 GB, free: 5.004 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002714/0.8515, allocations: 102.5 kB / 0.9545 GB, free: 4.953 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004744/0.852, allocations: 146.8 kB / 0.9546 GB, free: 4.867 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 6.637e-05/0.8521, allocations: 18.03 kB / 0.9546 GB, free: 4.863 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006551/0.8528, allocations: 205.6 kB / 0.9548 GB, free: 4.754 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001561/0.8529, allocations: 79.5 kB / 0.9549 GB, free: 4.703 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0002128/0.8532, allocations: 110.2 kB / 0.955 GB, free: 4.633 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0007242/0.8539, allocations: 337.8 kB / 0.9553 GB, free: 4.422 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.272e-06/0.8539, allocations: 0 / 0.9553 GB, free: 4.422 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.974e-06/0.854, allocations: 0 / 0.9553 GB, free: 4.422 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.437e-05/0.854, allocations: 0 / 0.9553 GB, free: 4.422 MB / 0.7169 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.00121/0.8552, allocations: 0.5185 MB / 0.9558 GB, free: 3.93 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.48e-05/0.8553, allocations: 9.094 kB / 0.9559 GB, free: 3.93 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001118/0.8564, allocations: 75.39 kB / 0.9559 GB, free: 3.898 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004002/0.8568, allocations: 242.5 kB / 0.9562 GB, free: 3.652 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.482e-05/0.8568, allocations: 15.98 kB / 0.9562 GB, free: 3.645 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.659e-05/0.8569, allocations: 20.91 kB / 0.9562 GB, free: 3.637 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006602/0.8576, allocations: 310 kB / 0.9565 GB, free: 3.418 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.471e-05/0.8576, allocations: 0 / 0.9565 GB, free: 3.418 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.668e-05/0.8577, allocations: 6.969 kB / 0.9565 GB, free: 3.414 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.357e-05/0.8577, allocations: 20.95 kB / 0.9565 GB, free: 3.406 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005029/0.8582, allocations: 201.2 kB / 0.9567 GB, free: 3.309 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001916/0.8602, allocations: 1.461 MB / 0.9581 GB, free: 1.863 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003722/0.8606, allocations: 172.6 kB / 0.9583 GB, free: 1.711 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.26e-05/0.8607, allocations: 39.12 kB / 0.9583 GB, free: 1.684 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.342e-05/0.8607, allocations: 1.906 kB / 0.9583 GB, free: 1.684 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.356e-05/0.8607, allocations: 31.62 kB / 0.9584 GB, free: 1.645 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 2.164e-06/0.8607, allocations: 0 / 0.9584 GB, free: 1.645 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0007493/0.8615, allocations: 225.2 kB / 0.9586 GB, free: 1.457 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.321e-05/0.8615, allocations: 56.5 kB / 0.9586 GB, free: 1.391 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002996/0.8619, allocations: 196.5 kB / 0.9588 GB, free: 1.242 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.55e-05/0.8619, allocations: 26.86 kB / 0.9588 GB, free: 1.211 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 9.974e-05/0.862, allocations: 167.8 kB / 0.959 GB, free: 1.055 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.592e-05/0.862, allocations: 26.95 kB / 0.959 GB, free: 1.031 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.037e-05/0.8621, allocations: 33.72 kB / 0.9591 GB, free: 1.004 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.764e-05/0.8622, allocations: 330.9 kB / 0.9594 GB, free: 0.6758 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001039/0.8623, allocations: 33.84 kB / 0.9594 GB, free: 0.6602 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001393/0.8625, allocations: 102.8 kB / 0.9595 GB, free: 0.5547 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002554/0.8628, allocations: 153.8 kB / 0.9597 GB, free: 428 kB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.55e-06/0.8628, allocations: 1.375 kB / 0.9597 GB, free: 428 kB / 0.7169 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.000508/0.8633, allocations: 190.7 kB / 0.9598 GB, free: 308 kB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.7e-05/0.8633, allocations: 10.66 kB / 0.9599 GB, free: 304 kB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.135e-05/0.8634, allocations: 2.5 kB / 0.9599 GB, free: 304 kB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002119/0.8636, allocations: 25.25 kB / 0.9599 GB, free: 288 kB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001884/0.8638, allocations: 29.94 kB / 0.9599 GB, free: 280 kB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001619/0.8654, allocations: 1.316 MB / 0.9612 GB, free: 14.92 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000256/0.8657, allocations: 30 kB / 0.9612 GB, free: 14.89 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.273e-05/0.8658, allocations: 10.44 kB / 0.9612 GB, free: 14.89 MB / 0.7325 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.0002625/0.866, allocations: 145.4 kB / 0.9614 GB, free: 14.75 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.076e-05/0.8661, allocations: 16.03 kB / 0.9614 GB, free: 14.75 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.382e-05/0.8662, allocations: 20.42 kB / 0.9614 GB, free: 14.73 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.136e-06/0.8662, allocations: 1.188 kB / 0.9614 GB, free: 14.73 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.91e-06/0.8662, allocations: 1.094 kB / 0.9614 GB, free: 14.73 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.028e-06/0.8662, allocations: 0 / 0.9614 GB, free: 14.73 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009547/0.8672, allocations: 453.6 kB / 0.9618 GB, free: 14.32 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.8672, allocations: 0 / 0.9618 GB, free: 14.32 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.465e-05/0.8673, allocations: 7.625 kB / 0.9618 GB, free: 14.32 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000138/0.8674, allocations: 18.34 kB / 0.9619 GB, free: 14.3 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.862e-05/0.8675, allocations: 5.062 kB / 0.9619 GB, free: 14.3 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001592/0.8691, allocations: 1.305 MB / 0.9631 GB, free: 12.95 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.402e-06/0.8691, allocations: 4.906 kB / 0.9631 GB, free: 12.94 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003881/0.8695, allocations: 209 kB / 0.9633 GB, free: 12.76 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001655/0.8697, allocations: 107.7 kB / 0.9634 GB, free: 12.64 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.442e-05/0.8698, allocations: 3.938 kB / 0.9635 GB, free: 12.64 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001963/0.87, allocations: 7.625 kB / 0.9635 GB, free: 12.64 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.711e-05/0.87, allocations: 10.8 kB / 0.9635 GB, free: 12.63 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.367e-05/0.8701, allocations: 6.094 kB / 0.9635 GB, free: 12.62 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0002753/0.8703, allocations: 147.8 kB / 0.9636 GB, free: 12.52 MB / 0.7325 GB Notification: Performance of sort global known variables: time 3.9e-07/0.8704, allocations: 0 / 0.9636 GB, free: 12.52 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0006687/0.871, allocations: 52.5 kB / 0.9637 GB, free: 12.5 MB / 0.7325 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.0001823/0.8712, allocations: 99.84 kB / 0.9638 GB, free: 12.41 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.000637/0.8719, allocations: 209.6 kB / 0.964 GB, free: 12.25 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/0.8719, allocations: 1.312 kB / 0.964 GB, free: 12.25 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0002569/0.8722, allocations: 144.6 kB / 0.9641 GB, free: 12.12 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006126/0.8728, allocations: 31.05 kB / 0.9641 GB, free: 12.11 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001179/0.874, allocations: 432.8 kB / 0.9645 GB, free: 11.78 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006702/0.8747, allocations: 0.7523 MB / 0.9653 GB, free: 11.05 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001938/0.8749, allocations: 24.81 kB / 0.9653 GB, free: 11.03 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.475e-05/0.875, allocations: 14.5 kB / 0.9653 GB, free: 11.02 MB / 0.7325 GB Notification: Performance of SimCode: time 1.242e-06/0.875, allocations: 1.25 kB / 0.9653 GB, free: 11.02 MB / 0.7325 GB Notification: Performance of Templates: time 0.009299/0.8843, allocations: 1.675 MB / 0.967 GB, free: 10.21 MB / 0.7325 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 -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/jenkins/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