Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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.Loads.Examples.Resistor,fileNamePrefix="Buildings_10_Buildings_Electrical_DC_Loads_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Loads.Examples.Resistor,fileNamePrefix="Buildings_10_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.007525/0.007525, allocations: 96.8 kB / 15.73 MB, free: 5.547 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.001869/0.001869, allocations: 190.1 kB / 16.67 MB, free: 5.48 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.417/1.417, allocations: 222.9 MB / 240.4 MB, free: 15.15 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.563/2.563, allocations: 437 MB / 0.7105 GB, free: 4.406 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001957/0.001957, allocations: 63.84 kB / 1.018 GB, free: 9.953 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7427/0.7447, allocations: 151.6 MB / 1.166 GB, free: 3.805 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.005789/0.7505, allocations: 3.837 MB / 1.17 GB, free: 15.95 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.002876/0.7534, allocations: 1.741 MB / 1.172 GB, free: 14.2 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002181/0.7536, allocations: 11.94 kB / 1.172 GB, free: 14.19 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.001445/0.7551, allocations: 491.3 kB / 1.172 GB, free: 13.71 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.0005417/0.7557, allocations: 226.8 kB / 1.172 GB, free: 13.49 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005447/0.7562, allocations: 203.5 kB / 1.172 GB, free: 13.29 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.0005471/0.7568, allocations: 478.4 kB / 1.173 GB, free: 12.82 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005818/0.7574, allocations: 363.8 kB / 1.173 GB, free: 12.46 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002345/0.7576, allocations: 195.2 kB / 1.173 GB, free: 12.27 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003872/0.758, allocations: 215.2 kB / 1.174 GB, free: 12.06 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 6.268e-05/0.7581, allocations: 31.98 kB / 1.174 GB, free: 12.03 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004804/0.7586, allocations: 243.4 kB / 1.174 GB, free: 11.79 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0001372/0.7587, allocations: 127.7 kB / 1.174 GB, free: 11.67 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0001931/0.7589, allocations: 175.2 kB / 1.174 GB, free: 11.5 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.0006589/0.7596, allocations: 0.4991 MB / 1.175 GB, free: 11 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.7596, allocations: 0 / 1.175 GB, free: 11 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.343e-06/0.7596, allocations: 0 / 1.175 GB, free: 11 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 1.453e-05/0.7596, allocations: 0 / 1.175 GB, free: 11 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: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.001126/0.7608, allocations: 0.6388 MB / 1.175 GB, free: 10.31 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.496e-05/0.7608, allocations: 16.92 kB / 1.175 GB, free: 10.29 MB / 0.9044 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.588e-05/0.7609, allocations: 70.72 kB / 1.175 GB, free: 10.21 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009227/0.7618, allocations: 136.5 kB / 1.176 GB, free: 10.08 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004086/0.7622, allocations: 299.7 kB / 1.176 GB, free: 9.75 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.089e-05/0.7623, allocations: 21.03 kB / 1.176 GB, free: 9.73 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.124e-05/0.7623, allocations: 32.36 kB / 1.176 GB, free: 9.699 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006982/0.7631, allocations: 459.7 kB / 1.176 GB, free: 9.211 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.283e-05/0.7631, allocations: 4 kB / 1.176 GB, free: 9.207 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.66e-05/0.7631, allocations: 15.98 kB / 1.176 GB, free: 9.191 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.08e-05/0.7632, allocations: 28.55 kB / 1.176 GB, free: 9.164 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005171/0.7637, allocations: 321.9 kB / 1.177 GB, free: 8.852 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002361/0.7661, allocations: 2.181 MB / 1.179 GB, free: 6.457 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004175/0.7665, allocations: 253.6 kB / 1.179 GB, free: 6.184 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002335/0.7667, allocations: 108.7 kB / 1.179 GB, free: 6.074 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 1.503e-05/0.7668, allocations: 0 / 1.179 GB, free: 6.074 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.92e-05/0.7668, allocations: 34.56 kB / 1.179 GB, free: 6.031 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=14): time 1.262e-06/0.7668, allocations: 0 / 1.179 GB, free: 6.031 MB / 0.9044 GB Notification: Performance of matching and sorting (n=14): time 0.0006325/0.7674, allocations: 303.7 kB / 1.179 GB, free: 5.707 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.006e-05/0.7675, allocations: 55.41 kB / 1.18 GB, free: 5.641 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003022/0.7678, allocations: 274.5 kB / 1.18 GB, free: 5.371 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.049e-05/0.7678, allocations: 29.64 kB / 1.18 GB, free: 5.336 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001526/0.768, allocations: 212.2 kB / 1.18 GB, free: 5.125 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 4.959e-05/0.7681, allocations: 51.58 kB / 1.18 GB, free: 5.074 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.502e-05/0.7681, allocations: 53.89 kB / 1.18 GB, free: 5.012 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001495/0.7683, allocations: 334.8 kB / 1.18 GB, free: 4.676 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001028/0.7684, allocations: 56.44 kB / 1.18 GB, free: 4.621 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001687/0.7686, allocations: 140.2 kB / 1.181 GB, free: 4.445 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002939/0.7689, allocations: 226.9 kB / 1.181 GB, free: 4.184 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.7689, allocations: 0 / 1.181 GB, free: 4.184 MB / 0.9044 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004516/0.7694, allocations: 262.2 kB / 1.181 GB, free: 3.918 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.733e-05/0.7694, allocations: 8 kB / 1.181 GB, free: 3.91 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.384e-06/0.7694, allocations: 4 kB / 1.181 GB, free: 3.906 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001743/0.7696, allocations: 24.84 kB / 1.181 GB, free: 3.879 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001916/0.7698, allocations: 51.92 kB / 1.181 GB, free: 3.828 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001228/0.771, allocations: 1.426 MB / 1.183 GB, free: 2.258 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001781/0.7712, allocations: 31.77 kB / 1.183 GB, free: 2.227 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.66e-05/0.7712, allocations: 12.16 kB / 1.183 GB, free: 2.215 MB / 0.9044 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.0001805/0.7714, allocations: 166.3 kB / 1.183 GB, free: 2.043 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.348e-05/0.7715, allocations: 35.78 kB / 1.183 GB, free: 2.008 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.366e-05/0.7715, allocations: 25.84 kB / 1.183 GB, free: 1.977 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.753e-06/0.7716, allocations: 0 / 1.183 GB, free: 1.977 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/0.7716, allocations: 0 / 1.183 GB, free: 1.977 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.652e-06/0.7716, allocations: 7.984 kB / 1.183 GB, free: 1.969 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009666/0.7725, allocations: 0.6947 MB / 1.184 GB, free: 1.184 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.559e-06/0.7726, allocations: 7.938 kB / 1.184 GB, free: 1.176 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.66e-05/0.7726, allocations: 19.98 kB / 1.184 GB, free: 1.156 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001021/0.7728, allocations: 32.97 kB / 1.184 GB, free: 1.121 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.44e-05/0.7728, allocations: 8 kB / 1.184 GB, free: 1.113 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001134/0.7739, allocations: 1.406 MB / 1.185 GB, free: 15.57 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.7739, allocations: 0 / 1.185 GB, free: 15.57 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003673/0.7743, allocations: 327.2 kB / 1.185 GB, free: 15.21 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001146/0.7744, allocations: 116.9 kB / 1.185 GB, free: 15.08 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.746e-05/0.7745, allocations: 0 / 1.185 GB, free: 15.08 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001708/0.7746, allocations: 15.98 kB / 1.185 GB, free: 15.06 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.867e-05/0.7747, allocations: 27.8 kB / 1.185 GB, free: 15.04 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.376e-05/0.7747, allocations: 8 kB / 1.185 GB, free: 15.03 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.0001975/0.7749, allocations: 186 kB / 1.186 GB, free: 14.85 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.61e-07/0.7749, allocations: 0 / 1.186 GB, free: 14.85 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0004084/0.7753, allocations: 71.89 kB / 1.186 GB, free: 14.78 MB / 0.92 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.0006835/0.776, allocations: 0.8587 MB / 1.187 GB, free: 13.87 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0004794/0.7765, allocations: 289.5 kB / 1.187 GB, free: 13.57 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.7765, allocations: 0 / 1.187 GB, free: 13.57 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0002274/0.7768, allocations: 179.5 kB / 1.187 GB, free: 13.39 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004724/0.7773, allocations: 69.42 kB / 1.187 GB, free: 13.32 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00326/0.7805, allocations: 2.716 MB / 1.19 GB, free: 10.42 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000443/0.781, allocations: 0.7909 MB / 1.19 GB, free: 9.605 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.0001554/0.7811, allocations: 46.25 kB / 1.19 GB, free: 9.559 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001217/0.7813, allocations: 83.41 kB / 1.191 GB, free: 9.477 MB / 0.92 GB Notification: Performance of SimCode: time 4.2e-07/0.7813, allocations: 0 / 1.191 GB, free: 9.477 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03154/0.8128, allocations: 5.373 MB / 1.196 GB, free: 4.238 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.73/10.54, allocations: 18.72 kB / 1.196 GB, free: 4.227 MB / 0.92 GB (rm -f Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; mkfifo Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe >> ../files/Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor.sim & python3 -m fmpy simulate --output-file Buildings_10_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_10_Buildings_Electrical_DC_Loads_Examples_Resistor.fmu > Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_DC_Loads_Examples_Resistor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches