Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_Buildings_Electrical_DC_Loads_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Loads.Examples.Resistor,fileNamePrefix="Buildings_9_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.001158/0.001158, allocations: 108 kB / 15.61 MB, free: 152 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.002013/0.002013, allocations: 195 kB / 16.53 MB, free: 6.664 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.385/1.385, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.334/2.334, allocations: 390.3 MB / 0.6647 GB, free: 464 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001474/0.001474, allocations: 67.89 kB / 0.8126 GB, free: 14.39 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6265/0.628, allocations: 140.4 MB / 0.9497 GB, free: 9.16 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.004446/0.6325, allocations: 3.829 MB / 0.9535 GB, free: 6.211 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002153/0.6347, allocations: 1.736 MB / 0.9551 GB, free: 4.832 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001549/0.6348, allocations: 9.781 kB / 0.9552 GB, free: 4.828 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.001145/0.636, allocations: 495.5 kB / 0.9556 GB, free: 4.461 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0003974/0.6364, allocations: 215 kB / 0.9558 GB, free: 4.293 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003975/0.6368, allocations: 210.1 kB / 0.956 GB, free: 4.137 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0003572/0.6372, allocations: 474.7 kB / 0.9565 GB, free: 3.879 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004425/0.6377, allocations: 369.6 kB / 0.9568 GB, free: 3.684 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001569/0.6378, allocations: 197.5 kB / 0.957 GB, free: 3.574 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002969/0.6381, allocations: 215.3 kB / 0.9572 GB, free: 3.445 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.972e-05/0.6382, allocations: 31.16 kB / 0.9573 GB, free: 3.441 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003492/0.6385, allocations: 240.4 kB / 0.9575 GB, free: 3.332 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 9.757e-05/0.6386, allocations: 131 kB / 0.9576 GB, free: 3.246 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001439/0.6388, allocations: 166.5 kB / 0.9578 GB, free: 3.141 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0004371/0.6392, allocations: 0.4955 MB / 0.9583 GB, free: 2.816 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.346e-06/0.6393, allocations: 0 / 0.9583 GB, free: 2.816 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.112e-06/0.6393, allocations: 1.375 kB / 0.9583 GB, free: 2.816 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.652e-06/0.6393, allocations: 0 / 0.9583 GB, free: 2.816 MB / 0.7169 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.0007728/0.64, allocations: 0.6273 MB / 0.9589 GB, free: 2.258 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.246e-05/0.6401, allocations: 9.188 kB / 0.9589 GB, free: 2.258 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.856e-05/0.6402, allocations: 75.33 kB / 0.959 GB, free: 2.188 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008982/0.6411, allocations: 133.2 kB / 0.9591 GB, free: 2.129 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002658/0.6413, allocations: 281.2 kB / 0.9593 GB, free: 1.859 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.003e-05/0.6414, allocations: 28.11 kB / 0.9594 GB, free: 1.844 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.295e-05/0.6414, allocations: 27 kB / 0.9594 GB, free: 1.836 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005511/0.642, allocations: 470.7 kB / 0.9598 GB, free: 1.512 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.18e-05/0.642, allocations: 7.938 kB / 0.9599 GB, free: 1.504 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.278e-05/0.642, allocations: 12.97 kB / 0.9599 GB, free: 1.496 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.361e-05/0.6421, allocations: 30.23 kB / 0.9599 GB, free: 1.488 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004403/0.6425, allocations: 320.4 kB / 0.9602 GB, free: 1.336 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001747/0.6443, allocations: 2.184 MB / 0.9623 GB, free: 15.23 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003617/0.6447, allocations: 255.3 kB / 0.9626 GB, free: 15.03 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002398/0.6449, allocations: 120.3 kB / 0.9627 GB, free: 14.97 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.056e-05/0.6449, allocations: 2.469 kB / 0.9627 GB, free: 14.97 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.646e-05/0.645, allocations: 32 kB / 0.9627 GB, free: 14.93 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=14): time 1.703e-06/0.645, allocations: 0 / 0.9627 GB, free: 14.93 MB / 0.7325 GB Notification: Performance of matching and sorting (n=14): time 0.0006308/0.6456, allocations: 301.1 kB / 0.963 GB, free: 14.71 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.923e-05/0.6457, allocations: 54.16 kB / 0.9631 GB, free: 14.65 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002788/0.6459, allocations: 269.2 kB / 0.9633 GB, free: 14.46 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.048e-05/0.646, allocations: 30.86 kB / 0.9634 GB, free: 14.43 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001214/0.6461, allocations: 206.3 kB / 0.9636 GB, free: 14.24 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 3.738e-05/0.6461, allocations: 52.28 kB / 0.9636 GB, free: 14.2 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.803e-05/0.6462, allocations: 45.58 kB / 0.9636 GB, free: 14.16 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001542/0.6464, allocations: 341.4 kB / 0.964 GB, free: 13.82 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.379e-05/0.6465, allocations: 57.19 kB / 0.964 GB, free: 13.79 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001924/0.6467, allocations: 147.6 kB / 0.9642 GB, free: 13.65 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002533/0.6469, allocations: 219 kB / 0.9644 GB, free: 13.47 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.6469, allocations: 1.375 kB / 0.9644 GB, free: 13.47 MB / 0.7325 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.000412/0.6474, allocations: 267.5 kB / 0.9646 GB, free: 13.32 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.489e-05/0.6474, allocations: 7.281 kB / 0.9646 GB, free: 13.32 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.783e-06/0.6474, allocations: 3.719 kB / 0.9646 GB, free: 13.32 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001458/0.6475, allocations: 26.88 kB / 0.9647 GB, free: 13.3 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001861/0.6477, allocations: 46.14 kB / 0.9647 GB, free: 13.29 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001098/0.6488, allocations: 1.426 MB / 0.9661 GB, free: 11.82 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000165/0.649, allocations: 27.75 kB / 0.9661 GB, free: 11.8 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.69e-05/0.6491, allocations: 13.59 kB / 0.9661 GB, free: 11.8 MB / 0.7325 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.0001769/0.6492, allocations: 165.9 kB / 0.9663 GB, free: 11.65 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.333e-05/0.6493, allocations: 22.62 kB / 0.9663 GB, free: 11.64 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.542e-05/0.6493, allocations: 32.64 kB / 0.9664 GB, free: 11.62 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.304e-06/0.6494, allocations: 1.344 kB / 0.9664 GB, free: 11.62 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.546e-06/0.6494, allocations: 5.031 kB / 0.9664 GB, free: 11.61 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.595e-06/0.6494, allocations: 0 / 0.9664 GB, free: 11.61 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009371/0.6503, allocations: 0.7103 MB / 0.9671 GB, free: 10.98 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-06/0.6503, allocations: 2.25 kB / 0.9671 GB, free: 10.98 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.468e-05/0.6504, allocations: 25.67 kB / 0.9671 GB, free: 10.97 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.838e-05/0.6505, allocations: 29.38 kB / 0.9671 GB, free: 10.95 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.282e-05/0.6505, allocations: 6.125 kB / 0.9671 GB, free: 10.95 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001001/0.6515, allocations: 1.414 MB / 0.9685 GB, free: 9.492 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.278e-06/0.6516, allocations: 6.703 kB / 0.9685 GB, free: 9.488 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003572/0.6519, allocations: 322.7 kB / 0.9688 GB, free: 9.215 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 9.576e-05/0.652, allocations: 110.2 kB / 0.9689 GB, free: 9.102 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.167e-05/0.6521, allocations: 6.25 kB / 0.9689 GB, free: 9.098 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001659/0.6522, allocations: 11.61 kB / 0.9689 GB, free: 9.094 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.864e-05/0.6523, allocations: 17.39 kB / 0.9689 GB, free: 9.082 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.051e-05/0.6523, allocations: 9.5 kB / 0.969 GB, free: 9.078 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001786/0.6525, allocations: 191.7 kB / 0.9691 GB, free: 8.949 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6525, allocations: 4 kB / 0.9691 GB, free: 8.945 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.000397/0.6529, allocations: 79.88 kB / 0.9692 GB, free: 8.926 MB / 0.7325 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.0005636/0.6535, allocations: 0.8453 MB / 0.97 GB, free: 8.129 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.000434/0.6539, allocations: 278.7 kB / 0.9703 GB, free: 7.941 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.6539, allocations: 0 / 0.9703 GB, free: 7.941 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0002073/0.6541, allocations: 184.7 kB / 0.9705 GB, free: 7.793 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004676/0.6546, allocations: 62.28 kB / 0.9705 GB, free: 7.762 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003064/0.6577, allocations: 2.737 MB / 0.9732 GB, free: 5.539 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000429/0.6581, allocations: 0.7908 MB / 0.974 GB, free: 4.789 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001476/0.6583, allocations: 41.45 kB / 0.974 GB, free: 4.773 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001097/0.6584, allocations: 88.28 kB / 0.9741 GB, free: 4.699 MB / 0.7325 GB Notification: Performance of SimCode: time 2.5e-07/0.6584, allocations: 0 / 0.9741 GB, free: 4.699 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02599/0.6844, allocations: 5.269 MB / 0.9793 GB, free: 2.094 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.13/9.815, allocations: 14.08 kB / 0.9793 GB, free: 2.086 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.sim & python3 -m fmpy simulate --output-file Buildings_9_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_9_Buildings_Electrical_DC_Loads_Examples_Resistor.fmu > Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_DC_Loads_Examples_Resistor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches