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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.001438/0.001438, allocations: 108 kB / 15.6 MB, free: 132 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.001792/0.001792, allocations: 193.9 kB / 16.53 MB, free: 6.391 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.398/1.398, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.695/2.695, allocations: 437 MB / 0.7104 GB, free: 5.105 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001342/0.001342, allocations: 67.89 kB / 0.8692 GB, free: 4.699 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8224/0.8238, allocations: 151.6 MB / 1.017 GB, free: 2.562 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.005372/0.8292, allocations: 3.084 MB / 1.02 GB, free: 15.46 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002167/0.8314, allocations: 1.324 MB / 1.022 GB, free: 14.13 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001339/0.8315, allocations: 7.938 kB / 1.022 GB, free: 14.12 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.001028/0.8326, allocations: 334.7 kB / 1.022 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0003608/0.833, allocations: 147.3 kB / 1.022 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003517/0.8333, allocations: 131.6 kB / 1.022 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0004341/0.8338, allocations: 303 kB / 1.022 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004304/0.8342, allocations: 246.2 kB / 1.023 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001311/0.8343, allocations: 123.5 kB / 1.023 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002862/0.8346, allocations: 139.5 kB / 1.023 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.738e-05/0.8347, allocations: 20 kB / 1.023 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003124/0.835, allocations: 163.6 kB / 1.023 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 8.323e-05/0.8351, allocations: 79.8 kB / 1.023 GB, free: 12.47 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001219/0.8352, allocations: 107.5 kB / 1.023 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0003965/0.8356, allocations: 331 kB / 1.024 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.798e-06/0.8356, allocations: 8 kB / 1.024 GB, free: 12.03 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.553e-06/0.8356, allocations: 0 / 1.024 GB, free: 12.03 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 8.806e-06/0.8357, allocations: 0 / 1.024 GB, free: 12.03 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.0008652/0.8365, allocations: 0.5223 MB / 1.024 GB, free: 11.46 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.101e-05/0.8366, allocations: 8.031 kB / 1.024 GB, free: 11.45 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000628/0.8372, allocations: 76.58 kB / 1.024 GB, free: 11.38 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003104/0.8375, allocations: 240 kB / 1.024 GB, free: 11.1 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.552e-05/0.8376, allocations: 12.75 kB / 1.024 GB, free: 11.09 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.227e-05/0.8376, allocations: 20.38 kB / 1.024 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004795/0.8381, allocations: 303.5 kB / 1.025 GB, free: 10.75 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.267e-06/0.8381, allocations: 0 / 1.025 GB, free: 10.75 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.285e-05/0.8381, allocations: 12 kB / 1.025 GB, free: 10.74 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.157e-05/0.8382, allocations: 16.38 kB / 1.025 GB, free: 10.73 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002881/0.8385, allocations: 196.9 kB / 1.025 GB, free: 10.54 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001475/0.8399, allocations: 1.46 MB / 1.026 GB, free: 8.914 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003633/0.8403, allocations: 175.7 kB / 1.027 GB, free: 8.715 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.934e-05/0.8404, allocations: 36.84 kB / 1.027 GB, free: 8.676 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 9.457e-06/0.8404, allocations: 0 / 1.027 GB, free: 8.676 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.644e-05/0.8404, allocations: 38.5 kB / 1.027 GB, free: 8.629 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 8.41e-07/0.8404, allocations: 0 / 1.027 GB, free: 8.629 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.000531/0.841, allocations: 231.3 kB / 1.027 GB, free: 8.375 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.28e-05/0.841, allocations: 55.41 kB / 1.027 GB, free: 8.309 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001888/0.8412, allocations: 191.5 kB / 1.027 GB, free: 8.113 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.547e-05/0.8412, allocations: 25.7 kB / 1.027 GB, free: 8.082 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 8.885e-05/0.8413, allocations: 167.8 kB / 1.027 GB, free: 7.914 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.377e-05/0.8414, allocations: 31.62 kB / 1.027 GB, free: 7.883 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.203e-05/0.8414, allocations: 41.56 kB / 1.027 GB, free: 7.836 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001152/0.8415, allocations: 330.8 kB / 1.028 GB, free: 7.504 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.293e-05/0.8416, allocations: 35.97 kB / 1.028 GB, free: 7.469 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001021/0.8417, allocations: 100.6 kB / 1.028 GB, free: 7.34 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001717/0.8419, allocations: 148.4 kB / 1.028 GB, free: 7.164 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.8419, allocations: 0 / 1.028 GB, free: 7.164 MB / 0.7794 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002946/0.8422, allocations: 190.1 kB / 1.028 GB, free: 6.969 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.53e-05/0.8422, allocations: 5.875 kB / 1.028 GB, free: 6.965 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.742e-06/0.8422, allocations: 4.281 kB / 1.028 GB, free: 6.961 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001566/0.8424, allocations: 28.84 kB / 1.028 GB, free: 6.93 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001082/0.8425, allocations: 31.92 kB / 1.028 GB, free: 6.898 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001275/0.8438, allocations: 1.418 MB / 1.03 GB, free: 5.344 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000201/0.844, allocations: 23.69 kB / 1.03 GB, free: 5.32 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.273e-05/0.844, allocations: 8 kB / 1.03 GB, free: 5.312 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 (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.0001217/0.8442, allocations: 155.4 kB / 1.03 GB, free: 5.152 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.05e-05/0.8442, allocations: 15.81 kB / 1.03 GB, free: 5.137 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.718e-05/0.8442, allocations: 17.34 kB / 1.03 GB, free: 5.121 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.373e-06/0.8443, allocations: 96 / 1.03 GB, free: 5.121 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.244e-06/0.8443, allocations: 3.938 kB / 1.03 GB, free: 5.117 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.93e-05/0.8443, allocations: 3.984 kB / 1.03 GB, free: 5.113 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004912/0.8448, allocations: 439.3 kB / 1.03 GB, free: 4.625 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.8448, allocations: 4 kB / 1.03 GB, free: 4.621 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.247e-05/0.8448, allocations: 15.92 kB / 1.03 GB, free: 4.605 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.206e-05/0.8449, allocations: 20.84 kB / 1.03 GB, free: 4.582 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.417e-06/0.8449, allocations: 4 kB / 1.03 GB, free: 4.578 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001015/0.846, allocations: 1.414 MB / 1.032 GB, free: 3.016 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.81e-07/0.846, allocations: 4.031 kB / 1.032 GB, free: 3.012 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002323/0.8462, allocations: 204.8 kB / 1.032 GB, free: 2.793 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 8.278e-05/0.8463, allocations: 100.8 kB / 1.032 GB, free: 2.676 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.962e-05/0.8463, allocations: 0 / 1.032 GB, free: 2.676 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001076/0.8464, allocations: 7.984 kB / 1.032 GB, free: 2.668 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.276e-05/0.8465, allocations: 11.98 kB / 1.032 GB, free: 2.656 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.25e-06/0.8465, allocations: 0 / 1.032 GB, free: 2.656 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.000123/0.8466, allocations: 147.2 kB / 1.032 GB, free: 2.512 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.9e-07/0.8466, allocations: 4 kB / 1.032 GB, free: 2.508 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.000335/0.847, allocations: 51.84 kB / 1.032 GB, free: 2.457 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 (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.0001119/0.8471, allocations: 99.19 kB / 1.032 GB, free: 2.352 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.000431/0.8475, allocations: 214.5 kB / 1.032 GB, free: 2.129 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.8475, allocations: 0.5625 kB / 1.032 GB, free: 2.129 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001828/0.8477, allocations: 154.7 kB / 1.033 GB, free: 1.965 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003713/0.8481, allocations: 32.53 kB / 1.033 GB, free: 1.934 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008336/0.8489, allocations: 363.7 kB / 1.033 GB, free: 1.551 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004832/0.8494, allocations: 0.7513 MB / 1.034 GB, free: 0.7734 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 9.245e-05/0.8495, allocations: 25.53 kB / 1.034 GB, free: 0.75 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.137e-05/0.8496, allocations: 15.44 kB / 1.034 GB, free: 0.7344 MB / 0.7794 GB Notification: Performance of SimCode: time 3.71e-07/0.8496, allocations: 0 / 1.034 GB, free: 0.7344 MB / 0.7794 GB Notification: Performance of Templates: time 0.004713/0.8543, allocations: 1.737 MB / 1.035 GB, free: 15.02 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