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.001186/0.001186, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001177/0.001176, allocations: 199.4 kB / 16.79 MB, free: 6.809 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.336/1.336, allocations: 222.9 MB / 240.5 MB, free: 4.594 MB / 190.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.357/2.357, allocations: 390.2 MB / 0.6649 GB, free: 0.6289 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001539/0.001539, allocations: 67.89 kB / 0.8125 GB, free: 14.91 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6732/0.6747, allocations: 140.3 MB / 0.9496 GB, free: 9.332 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.004178/0.6789, allocations: 3.134 MB / 0.9526 GB, free: 6.922 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001891/0.6809, allocations: 1.327 MB / 0.9539 GB, free: 5.883 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001548/0.6811, allocations: 7.562 kB / 0.9539 GB, free: 5.879 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0008934/0.682, allocations: 308.1 kB / 0.9542 GB, free: 5.652 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0003178/0.6823, allocations: 133.2 kB / 0.9544 GB, free: 5.551 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003389/0.6827, allocations: 123.9 kB / 0.9545 GB, free: 5.461 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0004126/0.6831, allocations: 435.6 kB / 0.9549 GB, free: 5.23 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003165/0.6834, allocations: 164.2 kB / 0.955 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001358/0.6836, allocations: 107.2 kB / 0.9551 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002863/0.6838, allocations: 142.5 kB / 0.9553 GB, free: 5 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.94e-05/0.6839, allocations: 13.59 kB / 0.9553 GB, free: 5 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003532/0.6843, allocations: 213.7 kB / 0.9555 GB, free: 4.883 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 8.674e-05/0.6844, allocations: 75.48 kB / 0.9556 GB, free: 4.836 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001201/0.6845, allocations: 110.9 kB / 0.9557 GB, free: 4.766 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002931/0.6848, allocations: 255.8 kB / 0.9559 GB, free: 4.605 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.6848, allocations: 0 / 0.9559 GB, free: 4.605 MB / 0.7169 GB Notification: Performance of FrontEnd: time 8.41e-07/0.6848, allocations: 0 / 0.9559 GB, free: 4.605 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.54e-06/0.6848, allocations: 1.156 kB / 0.9559 GB, free: 4.605 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.0007956/0.6856, allocations: 0.5148 MB / 0.9564 GB, free: 4.117 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.098e-05/0.6857, allocations: 14.23 kB / 0.9564 GB, free: 4.113 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000574/0.6862, allocations: 71.34 kB / 0.9565 GB, free: 4.086 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002375/0.6865, allocations: 249.7 kB / 0.9567 GB, free: 3.832 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.809e-05/0.6865, allocations: 16.58 kB / 0.9568 GB, free: 3.824 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.039e-05/0.6866, allocations: 20.03 kB / 0.9568 GB, free: 3.816 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004351/0.687, allocations: 306.4 kB / 0.9571 GB, free: 3.602 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.209e-05/0.687, allocations: 3.938 kB / 0.9571 GB, free: 3.598 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.921e-05/0.687, allocations: 6.219 kB / 0.9571 GB, free: 3.594 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.547e-05/0.6871, allocations: 21.83 kB / 0.9571 GB, free: 3.586 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000299/0.6874, allocations: 192.3 kB / 0.9573 GB, free: 3.496 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001203/0.6886, allocations: 1.465 MB / 0.9587 GB, free: 2.047 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002446/0.6889, allocations: 177.5 kB / 0.9589 GB, free: 1.891 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.173e-05/0.6889, allocations: 43.47 kB / 0.9589 GB, free: 1.859 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 9.668e-06/0.689, allocations: 1.125 kB / 0.9589 GB, free: 1.859 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.883e-05/0.689, allocations: 31.75 kB / 0.959 GB, free: 1.82 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.322e-06/0.689, allocations: 0 / 0.959 GB, free: 1.82 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0004801/0.6895, allocations: 214.4 kB / 0.9592 GB, free: 1.645 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.275e-05/0.6895, allocations: 51.41 kB / 0.9592 GB, free: 1.582 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001876/0.6897, allocations: 208.3 kB / 0.9594 GB, free: 1.422 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.125e-05/0.6897, allocations: 26.98 kB / 0.9594 GB, free: 1.391 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 7.217e-05/0.6898, allocations: 167.6 kB / 0.9596 GB, free: 1.234 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.991e-05/0.6898, allocations: 26.94 kB / 0.9596 GB, free: 1.211 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.859e-05/0.6899, allocations: 41.77 kB / 0.9597 GB, free: 1.176 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.969e-05/0.69, allocations: 325.9 kB / 0.96 GB, free: 0.8516 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.51e-05/0.69, allocations: 38.55 kB / 0.96 GB, free: 0.832 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.833e-05/0.6901, allocations: 107.8 kB / 0.9601 GB, free: 0.7227 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001469/0.6903, allocations: 141.1 kB / 0.9602 GB, free: 0.5977 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.398e-06/0.6903, allocations: 0.7188 kB / 0.9602 GB, free: 0.5977 MB / 0.7169 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002964/0.6906, allocations: 191.5 kB / 0.9604 GB, free: 492 kB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.772e-05/0.6906, allocations: 14.55 kB / 0.9604 GB, free: 484 kB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.213e-06/0.6906, allocations: 1.719 kB / 0.9604 GB, free: 484 kB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000182/0.6908, allocations: 25.94 kB / 0.9605 GB, free: 468 kB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001096/0.6909, allocations: 26.22 kB / 0.9605 GB, free: 464 kB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009187/0.6919, allocations: 1.313 MB / 0.9618 GB, free: 15.1 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001337/0.692, allocations: 25.91 kB / 0.9618 GB, free: 15.08 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.224e-05/0.692, allocations: 5.469 kB / 0.9618 GB, free: 15.08 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.000132/0.6922, allocations: 151.5 kB / 0.9619 GB, free: 14.94 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.263e-05/0.6922, allocations: 19.14 kB / 0.962 GB, free: 14.93 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.887e-05/0.6922, allocations: 13 kB / 0.962 GB, free: 14.93 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/0.6923, allocations: 1.5 kB / 0.962 GB, free: 14.93 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.136e-06/0.6923, allocations: 0.7812 kB / 0.962 GB, free: 14.93 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.344e-06/0.6923, allocations: 0 / 0.962 GB, free: 14.93 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005181/0.6928, allocations: 457.9 kB / 0.9624 GB, free: 14.5 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.515e-06/0.6928, allocations: 1.125 kB / 0.9624 GB, free: 14.5 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.109e-05/0.6928, allocations: 9.562 kB / 0.9624 GB, free: 14.5 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.816e-05/0.6929, allocations: 19 kB / 0.9624 GB, free: 14.49 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.015e-05/0.693, allocations: 9.062 kB / 0.9625 GB, free: 14.48 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008849/0.6938, allocations: 1.31 MB / 0.9637 GB, free: 13.12 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.496e-06/0.6939, allocations: 3.938 kB / 0.9637 GB, free: 13.12 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000223/0.6941, allocations: 212.8 kB / 0.9639 GB, free: 12.93 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 6.951e-05/0.6942, allocations: 102.8 kB / 0.964 GB, free: 12.82 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.399e-05/0.6942, allocations: 8.984 kB / 0.964 GB, free: 12.81 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001158/0.6943, allocations: 7.25 kB / 0.9641 GB, free: 12.81 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.383e-05/0.6944, allocations: 3.438 kB / 0.9641 GB, free: 12.81 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.302e-06/0.6944, allocations: 1.344 kB / 0.9641 GB, free: 12.81 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001318/0.6945, allocations: 148.2 kB / 0.9642 GB, free: 12.7 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.8e-07/0.6945, allocations: 0 / 0.9642 GB, free: 12.7 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003686/0.6949, allocations: 52.41 kB / 0.9643 GB, free: 12.69 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.0001196/0.695, allocations: 103.8 kB / 0.9644 GB, free: 12.59 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0003598/0.6954, allocations: 206 kB / 0.9645 GB, free: 12.44 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.6954, allocations: 0 / 0.9645 GB, free: 12.44 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.000151/0.6956, allocations: 149.7 kB / 0.9647 GB, free: 12.3 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003738/0.6959, allocations: 35.09 kB / 0.9647 GB, free: 12.29 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007236/0.6967, allocations: 464.1 kB / 0.9652 GB, free: 11.93 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000325/0.697, allocations: 0.7511 MB / 0.9659 GB, free: 11.19 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.141e-05/0.6971, allocations: 16.06 kB / 0.9659 GB, free: 11.18 MB / 0.7325 GB Notification: Performance of SimCode: time 4.81e-07/0.6971, allocations: 0 / 0.9659 GB, free: 11.18 MB / 0.7325 GB Notification: Performance of Templates: time 0.005114/0.7022, allocations: 2.952 MB / 0.9688 GB, free: 9.66 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/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