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.00687/0.006871, allocations: 105.4 kB / 15.74 MB, free: 6.039 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.001573/0.001573, allocations: 195.2 kB / 16.67 MB, free: 5.973 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.49/1.49, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.713/2.713, allocations: 461.9 MB / 0.7348 GB, free: 14.58 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001258/0.001258, allocations: 67.84 kB / 1.054 GB, free: 7.145 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3547/0.356, allocations: 157.4 MB / 1.208 GB, free: 9.645 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.004492/0.3605, allocations: 3.081 MB / 1.211 GB, free: 6.547 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.002045/0.3626, allocations: 1.325 MB / 1.212 GB, free: 5.215 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001098/0.3627, allocations: 11.94 kB / 1.212 GB, free: 5.203 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.001039/0.3638, allocations: 336.7 kB / 1.212 GB, free: 4.875 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0003694/0.3642, allocations: 139.3 kB / 1.212 GB, free: 4.738 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003353/0.3645, allocations: 139.6 kB / 1.213 GB, free: 4.602 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0003485/0.3649, allocations: 303 kB / 1.213 GB, free: 4.305 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004454/0.3653, allocations: 228.3 kB / 1.213 GB, free: 4.078 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001442/0.3655, allocations: 127.5 kB / 1.213 GB, free: 3.953 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000293/0.3658, allocations: 139.5 kB / 1.213 GB, free: 3.816 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 3.448e-05/0.3658, allocations: 23.94 kB / 1.213 GB, free: 3.793 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002808/0.3661, allocations: 163.6 kB / 1.214 GB, free: 3.633 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 9.186e-05/0.3662, allocations: 79.8 kB / 1.214 GB, free: 3.555 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0001202/0.3663, allocations: 111.5 kB / 1.214 GB, free: 3.445 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0004055/0.3668, allocations: 342.9 kB / 1.214 GB, free: 3.109 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.3668, allocations: 0 / 1.214 GB, free: 3.109 MB / 0.9669 GB Notification: Performance of FrontEnd: time 2.003e-06/0.3668, allocations: 0 / 1.214 GB, free: 3.109 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 6.682e-06/0.3668, allocations: 0 / 1.214 GB, free: 3.109 MB / 0.9669 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.0007775/0.3676, allocations: 0.5107 MB / 1.215 GB, free: 2.547 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.142e-05/0.3676, allocations: 12.62 kB / 1.215 GB, free: 2.535 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005798/0.3682, allocations: 80.58 kB / 1.215 GB, free: 2.457 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002982/0.3685, allocations: 241.3 kB / 1.215 GB, free: 2.184 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.034e-05/0.3685, allocations: 16.75 kB / 1.215 GB, free: 2.168 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.209e-05/0.3686, allocations: 20.36 kB / 1.215 GB, free: 2.148 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004091/0.369, allocations: 299.5 kB / 1.215 GB, free: 1.836 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.174e-05/0.369, allocations: 0 / 1.215 GB, free: 1.836 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.56e-05/0.369, allocations: 8 kB / 1.215 GB, free: 1.828 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.415e-05/0.3691, allocations: 20.36 kB / 1.215 GB, free: 1.809 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002868/0.3694, allocations: 200.9 kB / 1.215 GB, free: 1.613 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00139/0.3708, allocations: 1.46 MB / 1.217 GB, free: 15.98 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002499/0.371, allocations: 179.7 kB / 1.217 GB, free: 15.78 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.933e-05/0.3711, allocations: 24.86 kB / 1.217 GB, free: 15.75 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.328e-05/0.3711, allocations: 11.92 kB / 1.217 GB, free: 15.74 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.971e-05/0.3712, allocations: 30.56 kB / 1.217 GB, free: 15.7 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=7): time 1.192e-06/0.3712, allocations: 0 / 1.217 GB, free: 15.7 MB / 0.9825 GB Notification: Performance of matching and sorting (n=7): time 0.0004673/0.3716, allocations: 223.5 kB / 1.217 GB, free: 15.46 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.384e-05/0.3717, allocations: 55.41 kB / 1.217 GB, free: 15.39 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001897/0.3719, allocations: 206.6 kB / 1.218 GB, free: 15.18 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.123e-05/0.3719, allocations: 33.64 kB / 1.218 GB, free: 15.14 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 9.306e-05/0.372, allocations: 163.7 kB / 1.218 GB, free: 14.98 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.392e-05/0.3721, allocations: 27.64 kB / 1.218 GB, free: 14.95 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.938e-05/0.3721, allocations: 29.72 kB / 1.218 GB, free: 14.92 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001194/0.3722, allocations: 338.8 kB / 1.218 GB, free: 14.58 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.571e-05/0.3723, allocations: 40.05 kB / 1.218 GB, free: 14.54 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.279e-05/0.3724, allocations: 100.4 kB / 1.218 GB, free: 14.41 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001644/0.3726, allocations: 144.5 kB / 1.218 GB, free: 14.24 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.3726, allocations: 8 kB / 1.218 GB, free: 14.23 MB / 0.9825 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002872/0.3729, allocations: 182.2 kB / 1.219 GB, free: 14.04 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.489e-05/0.3729, allocations: 8 kB / 1.219 GB, free: 14.04 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.862e-06/0.3729, allocations: 3.984 kB / 1.219 GB, free: 14.03 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001589/0.3731, allocations: 29.12 kB / 1.219 GB, free: 14 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001012/0.3732, allocations: 27.94 kB / 1.219 GB, free: 13.97 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009947/0.3742, allocations: 1.426 MB / 1.22 GB, free: 12.41 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001103/0.3743, allocations: 11.84 kB / 1.22 GB, free: 12.39 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.289e-05/0.3743, allocations: 8 kB / 1.22 GB, free: 12.39 MB / 0.9825 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.0001179/0.3745, allocations: 152.1 kB / 1.22 GB, free: 12.23 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.607e-05/0.3745, allocations: 15.81 kB / 1.22 GB, free: 12.21 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.102e-05/0.3745, allocations: 21.45 kB / 1.22 GB, free: 12.2 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.373e-06/0.3745, allocations: 4 kB / 1.22 GB, free: 12.2 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.804e-06/0.3745, allocations: 0 / 1.22 GB, free: 12.2 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.414e-06/0.3746, allocations: 0 / 1.22 GB, free: 12.2 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000461/0.375, allocations: 455.4 kB / 1.221 GB, free: 11.69 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.375, allocations: 0 / 1.221 GB, free: 11.69 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.763e-05/0.3751, allocations: 8.094 kB / 1.221 GB, free: 11.68 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.286e-05/0.3752, allocations: 24.78 kB / 1.221 GB, free: 11.66 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.336e-06/0.3752, allocations: 4 kB / 1.221 GB, free: 11.65 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008623/0.376, allocations: 1.414 MB / 1.222 GB, free: 10.1 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.3761, allocations: 7.922 kB / 1.222 GB, free: 10.09 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002022/0.3763, allocations: 212.2 kB / 1.222 GB, free: 9.867 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 6.47e-05/0.3763, allocations: 96.84 kB / 1.222 GB, free: 9.754 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.542e-05/0.3764, allocations: 4 kB / 1.222 GB, free: 9.75 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001059/0.3765, allocations: 4.062 kB / 1.222 GB, free: 9.746 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.628e-05/0.3765, allocations: 8 kB / 1.222 GB, free: 9.738 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.444e-06/0.3765, allocations: 4 kB / 1.222 GB, free: 9.734 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001176/0.3766, allocations: 144.3 kB / 1.223 GB, free: 9.594 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3766, allocations: 0 / 1.223 GB, free: 9.594 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.000312/0.377, allocations: 51.84 kB / 1.223 GB, free: 9.543 MB / 0.9825 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 9.963e-05/0.3771, allocations: 99.23 kB / 1.223 GB, free: 9.434 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0003403/0.3774, allocations: 218.5 kB / 1.223 GB, free: 9.207 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.3774, allocations: 0 / 1.223 GB, free: 9.207 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001451/0.3776, allocations: 146.7 kB / 1.223 GB, free: 9.051 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003436/0.3779, allocations: 29.23 kB / 1.223 GB, free: 9.023 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005696/0.3785, allocations: 359 kB / 1.223 GB, free: 8.648 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003107/0.3788, allocations: 0.7514 MB / 1.224 GB, free: 7.871 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 8.58e-05/0.3789, allocations: 25.53 kB / 1.224 GB, free: 7.844 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.408e-05/0.379, allocations: 15.44 kB / 1.224 GB, free: 7.828 MB / 0.9825 GB Notification: Performance of SimCode: time 2.4e-07/0.379, allocations: 0 / 1.224 GB, free: 7.828 MB / 0.9825 GB Notification: Performance of Templates: time 0.004581/0.3836, allocations: 1.786 MB / 1.226 GB, free: 6.062 MB / 0.9825 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