Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_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_10_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.0008571/0.0008612, allocations: 86.48 kB / 15.06 MB, free: 1.09 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.0009799/0.0009801, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.459/1.459, allocations: 223.3 MB / 240 MB, free: 5.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.87/2.87, allocations: 437.7 MB / 0.7117 GB, free: 7.078 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003851/0.0003856, allocations: 11.94 kB / 0.8722 GB, free: 3.691 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.81/0.8104, allocations: 153.8 MB / 1.022 GB, free: 40 kB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.005902/0.8164, allocations: 2.669 MB / 1.025 GB, free: 13.36 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.003092/0.8195, allocations: 1.236 MB / 1.026 GB, free: 12.12 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000181/0.8197, allocations: 7.938 kB / 1.026 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0002396/0.82, allocations: 39.64 kB / 1.026 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0004863/0.8205, allocations: 115.5 kB / 1.026 GB, free: 11.96 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005336/0.821, allocations: 95.75 kB / 1.026 GB, free: 11.87 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0005646/0.8216, allocations: 350.9 kB / 1.027 GB, free: 11.52 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006047/0.8222, allocations: 207.9 kB / 1.027 GB, free: 11.3 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003722/0.8226, allocations: 103.6 kB / 1.027 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003993/0.823, allocations: 131.5 kB / 1.027 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 4.024e-05/0.8231, allocations: 12 kB / 1.027 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000438/0.8235, allocations: 79.88 kB / 1.027 GB, free: 10.98 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001263/0.8237, allocations: 71.8 kB / 1.027 GB, free: 10.91 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 7.25e-05/0.8238, allocations: 65.58 kB / 1.027 GB, free: 10.84 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0004463/0.8242, allocations: 245.3 kB / 1.028 GB, free: 10.6 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.259e-06/0.8242, allocations: 0 / 1.028 GB, free: 10.6 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.914e-06/0.8242, allocations: 0 / 1.028 GB, free: 10.6 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.591e-06/0.8243, allocations: 4 kB / 1.028 GB, free: 10.59 MB / 0.7794 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.00113/0.8254, allocations: 491 kB / 1.028 GB, free: 10.06 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 5.259e-05/0.8255, allocations: 8.562 kB / 1.028 GB, free: 10.05 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009763/0.8265, allocations: 83.64 kB / 1.028 GB, free: 9.973 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004262/0.8269, allocations: 248.3 kB / 1.028 GB, free: 9.691 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.013e-05/0.8269, allocations: 20.38 kB / 1.028 GB, free: 9.672 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.99e-05/0.827, allocations: 12 kB / 1.028 GB, free: 9.66 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007384/0.8277, allocations: 295.2 kB / 1.029 GB, free: 9.352 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.61e-05/0.8278, allocations: 3.938 kB / 1.029 GB, free: 9.348 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.036e-05/0.8278, allocations: 12 kB / 1.029 GB, free: 9.336 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.544e-05/0.8279, allocations: 16.36 kB / 1.029 GB, free: 9.32 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004748/0.8284, allocations: 193 kB / 1.029 GB, free: 9.133 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0024/0.8308, allocations: 1.46 MB / 1.03 GB, free: 7.512 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003835/0.8312, allocations: 175.7 kB / 1.031 GB, free: 7.312 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.286e-05/0.8313, allocations: 28.86 kB / 1.031 GB, free: 7.281 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.178e-05/0.8313, allocations: 0 / 1.031 GB, free: 7.281 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001064/0.8314, allocations: 42.53 kB / 1.031 GB, free: 7.23 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 3.106e-06/0.8315, allocations: 3.984 kB / 1.031 GB, free: 7.227 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0007471/0.8322, allocations: 227.6 kB / 1.031 GB, free: 6.977 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.884e-05/0.8323, allocations: 55.41 kB / 1.031 GB, free: 6.91 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003099/0.8326, allocations: 195.2 kB / 1.031 GB, free: 6.711 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.189e-05/0.8326, allocations: 29.7 kB / 1.031 GB, free: 6.676 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001459/0.8328, allocations: 163.5 kB / 1.031 GB, free: 6.512 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.756e-05/0.8328, allocations: 31.58 kB / 1.031 GB, free: 6.48 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.003e-05/0.8329, allocations: 0 / 1.031 GB, free: 6.48 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001726/0.833, allocations: 334.8 kB / 1.032 GB, free: 6.145 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001102/0.8332, allocations: 31.98 kB / 1.032 GB, free: 6.113 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001988/0.8334, allocations: 98.28 kB / 1.032 GB, free: 5.988 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001578/0.8336, allocations: 59.86 kB / 1.032 GB, free: 5.93 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.609e-06/0.8336, allocations: 0 / 1.032 GB, free: 5.93 MB / 0.7794 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.000624/0.8342, allocations: 186.3 kB / 1.032 GB, free: 5.738 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.596e-05/0.8342, allocations: 11.94 kB / 1.032 GB, free: 5.727 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.806e-06/0.8343, allocations: 320 / 1.032 GB, free: 5.727 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002286/0.8345, allocations: 24.84 kB / 1.032 GB, free: 5.699 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002048/0.8347, allocations: 31.92 kB / 1.032 GB, free: 5.668 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00168/0.8364, allocations: 1.327 MB / 1.033 GB, free: 4.211 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002222/0.8367, allocations: 19.75 kB / 1.033 GB, free: 4.191 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.651e-05/0.8368, allocations: 12.06 kB / 1.033 GB, free: 4.18 MB / 0.7794 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00023/0.837, allocations: 149.9 kB / 1.034 GB, free: 4.023 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.3e-05/0.8371, allocations: 7.906 kB / 1.034 GB, free: 4.016 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.231e-05/0.8372, allocations: 21.39 kB / 1.034 GB, free: 3.996 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.622e-06/0.8372, allocations: 4 kB / 1.034 GB, free: 3.992 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/0.8372, allocations: 0 / 1.034 GB, free: 3.992 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.336e-06/0.8372, allocations: 3.953 kB / 1.034 GB, free: 3.988 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009503/0.8382, allocations: 443.2 kB / 1.034 GB, free: 3.496 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.091e-06/0.8382, allocations: 8 kB / 1.034 GB, free: 3.488 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.041e-05/0.8383, allocations: 4 kB / 1.034 GB, free: 3.484 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003066/0.8386, allocations: 28.8 kB / 1.034 GB, free: 3.453 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.18e-05/0.8386, allocations: 3.938 kB / 1.034 GB, free: 3.449 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001575/0.8402, allocations: 1.304 MB / 1.035 GB, free: 2.008 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.013e-06/0.8402, allocations: 0 / 1.035 GB, free: 2.008 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004171/0.8407, allocations: 216.1 kB / 1.036 GB, free: 1.777 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000132/0.8408, allocations: 104.8 kB / 1.036 GB, free: 1.656 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.254e-05/0.8409, allocations: 4.094 kB / 1.036 GB, free: 1.652 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002043/0.8411, allocations: 4 kB / 1.036 GB, free: 1.648 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.88e-05/0.8411, allocations: 11.98 kB / 1.036 GB, free: 1.637 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.247e-06/0.8412, allocations: 0 / 1.036 GB, free: 1.637 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0003441/0.8415, allocations: 143.2 kB / 1.036 GB, free: 1.496 MB / 0.7794 GB Notification: Performance of sort global known variables: time 3.91e-07/0.8415, allocations: 0 / 1.036 GB, free: 1.496 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0006333/0.8422, allocations: 47.91 kB / 1.036 GB, free: 1.449 MB / 0.7794 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000162/0.8424, allocations: 103.2 kB / 1.036 GB, free: 1.34 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0005456/0.8429, allocations: 210.6 kB / 1.036 GB, free: 1.121 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.8429, allocations: 0 / 1.036 GB, free: 1.121 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0002707/0.8432, allocations: 146.6 kB / 1.036 GB, free: 0.9648 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006487/0.8439, allocations: 32.73 kB / 1.036 GB, free: 0.9336 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001263/0.8452, allocations: 427.2 kB / 1.037 GB, free: 500 kB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000896/0.8461, allocations: 0.7517 MB / 1.037 GB, free: 15.71 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0002716/0.8464, allocations: 25.53 kB / 1.037 GB, free: 15.69 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.147e-05/0.8464, allocations: 15.44 kB / 1.037 GB, free: 15.67 MB / 0.795 GB Notification: Performance of SimCode: time 4.71e-07/0.8465, allocations: 0 / 1.037 GB, free: 15.67 MB / 0.795 GB Notification: Performance of Templates: time 0.008714/0.8552, allocations: 1.627 MB / 1.039 GB, free: 14.07 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance.makefile (rm -f Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance.sim & ./Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_DC_Lines_Examples_Resistance.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches