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: "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.Resistance,fileNamePrefix="Buildings_10_Buildings_Electrical_DC_Lines_Examples_Resistance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.Resistance,fileNamePrefix="Buildings_10_Buildings_Electrical_DC_Lines_Examples_Resistance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006948/0.006948, allocations: 99.83 kB / 15.73 MB, free: 6.012 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.001822/0.001822, allocations: 193.6 kB / 16.67 MB, free: 5.93 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.41/1.41, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.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.515/2.515, allocations: 437 MB / 0.7105 GB, free: 4.375 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001954/0.001954, allocations: 75.88 kB / 1.018 GB, free: 9.902 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7222/0.7242, allocations: 151.6 MB / 1.166 GB, free: 3.766 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.004853/0.7291, allocations: 3.089 MB / 1.169 GB, free: 0.6641 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.002182/0.7313, allocations: 1.317 MB / 1.17 GB, free: 15.34 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001231/0.7314, allocations: 7.938 kB / 1.17 GB, free: 15.33 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.001052/0.7325, allocations: 340.4 kB / 1.171 GB, free: 15 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.0003335/0.7328, allocations: 143.3 kB / 1.171 GB, free: 14.86 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003364/0.7332, allocations: 135.6 kB / 1.171 GB, free: 14.73 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.0003723/0.7336, allocations: 299 kB / 1.171 GB, free: 14.43 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004365/0.734, allocations: 240.3 kB / 1.172 GB, free: 14.2 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001636/0.7342, allocations: 127.5 kB / 1.172 GB, free: 14.07 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003384/0.7345, allocations: 139.5 kB / 1.172 GB, free: 13.94 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 3.822e-05/0.7346, allocations: 16 kB / 1.172 GB, free: 13.92 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002989/0.7349, allocations: 167.6 kB / 1.172 GB, free: 13.76 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 9.643e-05/0.735, allocations: 79.86 kB / 1.172 GB, free: 13.68 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0001233/0.7351, allocations: 111.5 kB / 1.172 GB, free: 13.57 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.0004613/0.7356, allocations: 342.3 kB / 1.172 GB, free: 13.24 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 6.532e-06/0.7356, allocations: 4 kB / 1.172 GB, free: 13.23 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.853e-06/0.7356, allocations: 0 / 1.172 GB, free: 13.23 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 1.377e-05/0.7356, allocations: 0 / 1.172 GB, free: 13.23 MB / 0.9044 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.0009763/0.7366, allocations: 0.5182 MB / 1.173 GB, free: 12.66 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.75e-05/0.7367, allocations: 8.922 kB / 1.173 GB, free: 12.66 MB / 0.9044 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.134e-05/0.7368, allocations: 58.73 kB / 1.173 GB, free: 12.59 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006011/0.7374, allocations: 80.72 kB / 1.173 GB, free: 12.51 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003266/0.7377, allocations: 246.2 kB / 1.173 GB, free: 12.23 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.397e-05/0.7377, allocations: 20.73 kB / 1.173 GB, free: 12.21 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.532e-05/0.7378, allocations: 16.38 kB / 1.173 GB, free: 12.2 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004548/0.7382, allocations: 295.3 kB / 1.174 GB, free: 11.89 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.235e-05/0.7383, allocations: 0 / 1.174 GB, free: 11.89 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.613e-05/0.7383, allocations: 12 kB / 1.174 GB, free: 11.88 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.417e-05/0.7383, allocations: 16.36 kB / 1.174 GB, free: 11.86 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003385/0.7387, allocations: 196.9 kB / 1.174 GB, free: 11.67 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00159/0.7403, allocations: 1.464 MB / 1.175 GB, free: 10.04 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002729/0.7406, allocations: 171.7 kB / 1.175 GB, free: 9.848 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.712e-05/0.7406, allocations: 36.84 kB / 1.176 GB, free: 9.809 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 1.365e-05/0.7407, allocations: 7.969 kB / 1.176 GB, free: 9.801 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.751e-05/0.7407, allocations: 38.62 kB / 1.176 GB, free: 9.754 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=7): time 1.233e-06/0.7407, allocations: 4 kB / 1.176 GB, free: 9.75 MB / 0.9044 GB Notification: Performance of matching and sorting (n=7): time 0.0004739/0.7412, allocations: 227.6 kB / 1.176 GB, free: 9.5 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.482e-05/0.7412, allocations: 51.41 kB / 1.176 GB, free: 9.438 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002112/0.7414, allocations: 211.8 kB / 1.176 GB, free: 9.223 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 1.955e-05/0.7415, allocations: 25.7 kB / 1.176 GB, free: 9.191 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001096/0.7416, allocations: 164 kB / 1.176 GB, free: 9.027 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 2.388e-05/0.7416, allocations: 31.73 kB / 1.176 GB, free: 8.996 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.897e-05/0.7417, allocations: 37.7 kB / 1.176 GB, free: 8.953 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001462/0.7418, allocations: 330.8 kB / 1.177 GB, free: 8.621 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.309e-05/0.7419, allocations: 31.98 kB / 1.177 GB, free: 8.59 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001147/0.742, allocations: 100.5 kB / 1.177 GB, free: 8.461 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000182/0.7422, allocations: 144.5 kB / 1.177 GB, free: 8.289 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.7422, allocations: 0 / 1.177 GB, free: 8.289 MB / 0.9044 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003299/0.7426, allocations: 190.2 kB / 1.177 GB, free: 8.094 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.441e-05/0.7426, allocations: 7.984 kB / 1.177 GB, free: 8.086 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.793e-06/0.7426, allocations: 4.281 kB / 1.177 GB, free: 8.082 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001532/0.7427, allocations: 28.84 kB / 1.177 GB, free: 8.051 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001081/0.7429, allocations: 23.94 kB / 1.177 GB, free: 8.027 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001155/0.744, allocations: 1.426 MB / 1.179 GB, free: 6.461 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001159/0.7442, allocations: 19.84 kB / 1.179 GB, free: 6.441 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.266e-05/0.7442, allocations: 8 kB / 1.179 GB, free: 6.434 MB / 0.9044 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.0001382/0.7443, allocations: 157.7 kB / 1.179 GB, free: 6.27 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.457e-05/0.7444, allocations: 7.953 kB / 1.179 GB, free: 6.262 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.284e-05/0.7444, allocations: 17.39 kB / 1.179 GB, free: 6.238 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.293e-06/0.7444, allocations: 4 kB / 1.179 GB, free: 6.234 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.295e-06/0.7444, allocations: 0 / 1.179 GB, free: 6.234 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.204e-06/0.7444, allocations: 0 / 1.179 GB, free: 6.234 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005326/0.745, allocations: 459.5 kB / 1.179 GB, free: 5.727 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.745, allocations: 96 / 1.179 GB, free: 5.727 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.636e-05/0.745, allocations: 7.938 kB / 1.179 GB, free: 5.719 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.494e-05/0.7451, allocations: 24.84 kB / 1.179 GB, free: 5.691 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.107e-06/0.7451, allocations: 4 kB / 1.179 GB, free: 5.688 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001075/0.7462, allocations: 1.422 MB / 1.181 GB, free: 4.125 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.7462, allocations: 3.938 kB / 1.181 GB, free: 4.121 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000247/0.7465, allocations: 216.2 kB / 1.181 GB, free: 3.891 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 8.306e-05/0.7465, allocations: 97 kB / 1.181 GB, free: 3.777 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.721e-05/0.7466, allocations: 4.094 kB / 1.181 GB, free: 3.773 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000108/0.7467, allocations: 8 kB / 1.181 GB, free: 3.766 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.739e-05/0.7467, allocations: 4 kB / 1.181 GB, free: 3.762 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.807e-06/0.7467, allocations: 3.984 kB / 1.181 GB, free: 3.758 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0001334/0.7469, allocations: 139.2 kB / 1.181 GB, free: 3.621 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.31e-07/0.7469, allocations: 0 / 1.181 GB, free: 3.621 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0003169/0.7472, allocations: 51.89 kB / 1.181 GB, free: 3.57 MB / 0.9044 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.000561/0.7478, allocations: 0.7566 MB / 1.182 GB, free: 2.781 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0003578/0.7481, allocations: 203 kB / 1.182 GB, free: 2.57 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 4.338e-06/0.7481, allocations: 4.062 kB / 1.182 GB, free: 2.566 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0001654/0.7483, allocations: 142.7 kB / 1.182 GB, free: 2.414 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003488/0.7487, allocations: 38.25 kB / 1.182 GB, free: 2.379 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002289/0.751, allocations: 2.043 MB / 1.184 GB, free: 200 kB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000416/0.7514, allocations: 0.7555 MB / 1.185 GB, free: 15.41 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 8.336e-05/0.7515, allocations: 25.53 kB / 1.185 GB, free: 15.39 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.466e-05/0.7516, allocations: 55.36 kB / 1.185 GB, free: 15.34 MB / 0.92 GB Notification: Performance of SimCode: time 2.5e-07/0.7516, allocations: 0 / 1.185 GB, free: 15.34 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02716/0.7788, allocations: 3.727 MB / 1.189 GB, free: 11.74 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.919/10.7, allocations: 14.09 kB / 1.189 GB, free: 11.73 MB / 0.92 GB (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 & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_10_Buildings_Electrical_DC_Lines_Examples_Resistance.fmu > Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_DC_Lines_Examples_Resistance.csv","/var/lib/jenkins1/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