Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Electrical.DC.Loads.Examples.Resistor.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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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.Loads.Examples.Resistor,fileNamePrefix="Buildings_11_Buildings_Electrical_DC_Loads_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Loads.Examples.Resistor,fileNamePrefix="Buildings_11_Buildings_Electrical_DC_Loads_Examples_Resistor",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.00827/0.00827, allocations: 99.77 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.002051/0.002051, allocations: 193.5 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.37/1.37, 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 11.1.0-maint.11.x/package.mo): time 2.727/2.727, allocations: 469.8 MB / 0.7425 GB, free: 3.309 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001864/0.001864, allocations: 75.88 kB / 1.065 GB, free: 14.07 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7948/0.7967, allocations: 159.1 MB / 1.22 GB, free: 2.043 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.005924/0.8026, allocations: 3.845 MB / 1.224 GB, free: 14.18 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.003142/0.8058, allocations: 1.729 MB / 1.226 GB, free: 12.45 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002781/0.8062, allocations: 15.94 kB / 1.226 GB, free: 12.43 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.001575/0.8077, allocations: 490.1 kB / 1.226 GB, free: 11.95 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0006704/0.8084, allocations: 218.9 kB / 1.226 GB, free: 11.73 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006345/0.8091, allocations: 211.5 kB / 1.226 GB, free: 11.53 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0007266/0.8098, allocations: 474.4 kB / 1.227 GB, free: 11.06 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006862/0.8105, allocations: 366.1 kB / 1.227 GB, free: 10.71 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003571/0.8109, allocations: 191.4 kB / 1.227 GB, free: 10.52 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005161/0.8114, allocations: 215.2 kB / 1.228 GB, free: 10.31 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 7.325e-05/0.8115, allocations: 28 kB / 1.228 GB, free: 10.28 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005282/0.812, allocations: 247.4 kB / 1.228 GB, free: 10.04 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.0001759/0.8122, allocations: 127.7 kB / 1.228 GB, free: 9.914 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0002356/0.8124, allocations: 171.2 kB / 1.228 GB, free: 9.746 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0008515/0.8133, allocations: 0.5007 MB / 1.229 GB, free: 9.246 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 6.232e-06/0.8133, allocations: 8 kB / 1.229 GB, free: 9.238 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.863e-06/0.8133, allocations: 0 / 1.229 GB, free: 9.238 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 1.583e-05/0.8134, allocations: 0 / 1.229 GB, free: 9.238 MB / 0.9512 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.001292/0.8146, allocations: 0.6427 MB / 1.229 GB, free: 8.543 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 5.485e-05/0.8147, allocations: 8.031 kB / 1.229 GB, free: 8.535 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001005/0.8148, allocations: 66.72 kB / 1.229 GB, free: 8.461 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009617/0.8158, allocations: 132.6 kB / 1.23 GB, free: 8.332 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004446/0.8163, allocations: 308.2 kB / 1.23 GB, free: 7.992 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.616e-05/0.8163, allocations: 21.03 kB / 1.23 GB, free: 7.973 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.726e-05/0.8163, allocations: 24.38 kB / 1.23 GB, free: 7.949 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007137/0.8171, allocations: 471.6 kB / 1.23 GB, free: 7.449 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.296e-05/0.8171, allocations: 0 / 1.23 GB, free: 7.449 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.947e-05/0.8171, allocations: 19.97 kB / 1.23 GB, free: 7.43 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.113e-05/0.8172, allocations: 32.55 kB / 1.23 GB, free: 7.398 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005232/0.8177, allocations: 321.9 kB / 1.231 GB, free: 7.086 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002562/0.8203, allocations: 2.178 MB / 1.233 GB, free: 4.695 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004266/0.8207, allocations: 252.3 kB / 1.233 GB, free: 4.422 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002443/0.821, allocations: 108.8 kB / 1.233 GB, free: 4.312 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.113e-05/0.821, allocations: 4 kB / 1.233 GB, free: 4.309 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.474e-05/0.8211, allocations: 38.5 kB / 1.233 GB, free: 4.262 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=14): time 1.583e-06/0.8211, allocations: 0 / 1.233 GB, free: 4.262 MB / 0.9512 GB Notification: Performance of matching and sorting (n=14): time 0.0006701/0.8217, allocations: 301.5 kB / 1.233 GB, free: 3.941 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.24e-05/0.8218, allocations: 55.41 kB / 1.234 GB, free: 3.875 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003204/0.8221, allocations: 274.5 kB / 1.234 GB, free: 3.605 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.247e-05/0.8222, allocations: 29.64 kB / 1.234 GB, free: 3.57 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001646/0.8223, allocations: 208.3 kB / 1.234 GB, free: 3.359 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 5.18e-05/0.8224, allocations: 59.5 kB / 1.234 GB, free: 3.301 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.515e-05/0.8225, allocations: 45.95 kB / 1.234 GB, free: 3.246 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001858/0.8227, allocations: 338.7 kB / 1.234 GB, free: 2.906 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001109/0.8228, allocations: 60.44 kB / 1.234 GB, free: 2.848 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001829/0.823, allocations: 136.1 kB / 1.235 GB, free: 2.676 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003033/0.8233, allocations: 225.2 kB / 1.235 GB, free: 2.418 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.148e-06/0.8233, allocations: 0 / 1.235 GB, free: 2.418 MB / 0.9512 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004647/0.8238, allocations: 262.1 kB / 1.235 GB, free: 2.152 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.826e-05/0.8238, allocations: 4.375 kB / 1.235 GB, free: 2.148 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.062e-05/0.8238, allocations: 8 kB / 1.235 GB, free: 2.141 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001918/0.824, allocations: 24.78 kB / 1.235 GB, free: 2.113 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001866/0.8242, allocations: 51.92 kB / 1.235 GB, free: 2.062 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001299/0.8255, allocations: 1.426 MB / 1.237 GB, free: 0.4961 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000185/0.8257, allocations: 31.73 kB / 1.237 GB, free: 476 kB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.654e-05/0.8257, allocations: 8 kB / 1.237 GB, free: 468 kB / 0.9512 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (27): * Single equations (assignments): 26 * 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.0001755/0.8259, allocations: 173.8 kB / 1.237 GB, free: 284 kB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.905e-05/0.826, allocations: 23.86 kB / 1.237 GB, free: 260 kB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.809e-05/0.826, allocations: 29.83 kB / 1.237 GB, free: 228 kB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.674e-06/0.8261, allocations: 0 / 1.237 GB, free: 228 kB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.8261, allocations: 4 kB / 1.237 GB, free: 224 kB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.467e-06/0.8261, allocations: 0 / 1.237 GB, free: 224 kB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001025/0.8271, allocations: 0.6987 MB / 1.238 GB, free: 15.43 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.8271, allocations: 0 / 1.238 GB, free: 15.43 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.926e-05/0.8272, allocations: 27.92 kB / 1.238 GB, free: 15.4 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.14e-05/0.8273, allocations: 28.78 kB / 1.238 GB, free: 15.37 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.34e-05/0.8273, allocations: 4.188 kB / 1.238 GB, free: 15.37 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001201/0.8285, allocations: 1.426 MB / 1.239 GB, free: 13.8 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.161e-06/0.8286, allocations: 8.016 kB / 1.239 GB, free: 13.8 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003908/0.829, allocations: 321.2 kB / 1.239 GB, free: 13.45 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001262/0.8291, allocations: 113 kB / 1.239 GB, free: 13.32 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.862e-05/0.8291, allocations: 4 kB / 1.239 GB, free: 13.31 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001629/0.8293, allocations: 11.98 kB / 1.239 GB, free: 13.3 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.427e-05/0.8293, allocations: 23.8 kB / 1.239 GB, free: 13.28 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.236e-05/0.8294, allocations: 12 kB / 1.239 GB, free: 13.27 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.000205/0.8296, allocations: 190 kB / 1.24 GB, free: 13.08 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.5e-07/0.8296, allocations: 4 kB / 1.24 GB, free: 13.08 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0004019/0.83, allocations: 71.89 kB / 1.24 GB, free: 13.01 MB / 0.9669 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (14): * Single equations (assignments): 13 * 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.0007486/0.8307, allocations: 0.8492 MB / 1.241 GB, free: 12.11 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0005169/0.8313, allocations: 278.5 kB / 1.241 GB, free: 11.82 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 4.098e-06/0.8313, allocations: 0 / 1.241 GB, free: 11.82 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0002435/0.8315, allocations: 182.5 kB / 1.241 GB, free: 11.63 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004786/0.832, allocations: 66.72 kB / 1.241 GB, free: 11.57 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003455/0.8355, allocations: 2.709 MB / 1.244 GB, free: 8.672 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004793/0.836, allocations: 0.8025 MB / 1.244 GB, free: 7.844 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.0001469/0.8361, allocations: 46.23 kB / 1.244 GB, free: 7.801 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000131/0.8363, allocations: 79.41 kB / 1.245 GB, free: 7.727 MB / 0.9669 GB Notification: Performance of SimCode: time 4.91e-07/0.8363, allocations: 0 / 1.245 GB, free: 7.727 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03753/0.8738, allocations: 5.389 MB / 1.25 GB, free: 2.469 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.777/10.65, allocations: 19.66 kB / 1.25 GB, free: 2.457 MB / 0.9669 GB (rm -f Buildings_11_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; mkfifo Buildings_11_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; head -c 1048576 < Buildings_11_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe >> ../files/Buildings_11_Buildings.Electrical.DC.Loads.Examples.Resistor.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Electrical.DC.Loads.Examples.Resistor_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_11_Buildings_Electrical_DC_Loads_Examples_Resistor.fmu > Buildings_11_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Electrical.DC.Loads.Examples.Resistor_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Electrical_DC_Loads_Examples_Resistor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Electrical.DC.Loads.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches