Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Subtract.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.Controls.OBC.CDL.Continuous.Validation.Subtract,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Subtract",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.Subtract,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Subtract",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.001256/0.001256, allocations: 112.5 kB / 15.73 MB, free: 80 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.00123/0.00123, allocations: 196.5 kB / 16.66 MB, free: 6.574 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.371/1.371, allocations: 222.9 MB / 240.4 MB, free: 4.332 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.403/2.403, allocations: 390.3 MB / 0.6648 GB, free: 196 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001257/0.001257, allocations: 66.36 kB / 0.9504 GB, free: 5.867 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2582/0.2594, allocations: 140.4 MB / 1.088 GB, free: 1.922 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Subtract): time 0.00192/0.2614, allocations: 0.6903 MB / 1.088 GB, free: 1.23 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001193/0.2626, allocations: 0.8082 MB / 1.089 GB, free: 420 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.844e-05/0.2627, allocations: 4 kB / 1.089 GB, free: 416 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 3.601e-05/0.2628, allocations: 7.875 kB / 1.089 GB, free: 408 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 8.8e-05/0.2629, allocations: 3.938 kB / 1.089 GB, free: 404 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 8.97e-05/0.263, allocations: 7.984 kB / 1.089 GB, free: 396 kB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0001239/0.2631, allocations: 59.83 kB / 1.089 GB, free: 336 kB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001352/0.2633, allocations: 4 kB / 1.089 GB, free: 332 kB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 8.959e-05/0.2634, allocations: 19.92 kB / 1.089 GB, free: 312 kB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 5.717e-05/0.2634, allocations: 31.84 kB / 1.089 GB, free: 280 kB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.847e-05/0.2634, allocations: 0 / 1.089 GB, free: 280 kB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 8.576e-06/0.2635, allocations: 4 kB / 1.089 GB, free: 276 kB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 2.33e-05/0.2635, allocations: 8 kB / 1.089 GB, free: 268 kB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 4.412e-05/0.2635, allocations: 19.92 kB / 1.089 GB, free: 248 kB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0001101/0.2637, allocations: 39.8 kB / 1.089 GB, free: 208 kB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 7.514e-06/0.2637, allocations: 4 kB / 1.089 GB, free: 204 kB / 0.8419 GB Notification: Performance of FrontEnd: time 2.395e-06/0.2637, allocations: 0 / 1.089 GB, free: 204 kB / 0.8419 GB Notification: Performance of Transformations before backend: time 7.113e-06/0.2637, allocations: 0 / 1.089 GB, free: 204 kB / 0.8419 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0006729/0.2644, allocations: 358.3 kB / 1.09 GB, free: 15.8 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.965e-05/0.2644, allocations: 8.031 kB / 1.09 GB, free: 15.79 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.637e-05/0.2645, allocations: 38.73 kB / 1.09 GB, free: 15.75 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.365e-05/0.2645, allocations: 8.844 kB / 1.09 GB, free: 15.74 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001692/0.2647, allocations: 165.2 kB / 1.09 GB, free: 15.54 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.33e-05/0.2647, allocations: 4.375 kB / 1.09 GB, free: 15.54 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.875e-05/0.2647, allocations: 384 / 1.09 GB, free: 15.54 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002954/0.265, allocations: 74.16 kB / 1.09 GB, free: 15.46 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.192e-05/0.2651, allocations: 7.938 kB / 1.09 GB, free: 15.45 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.202e-05/0.2651, allocations: 0 / 1.09 GB, free: 15.45 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.534e-06/0.2651, allocations: 4 kB / 1.09 GB, free: 15.45 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003085/0.2654, allocations: 63.92 kB / 1.09 GB, free: 15.38 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004502/0.2659, allocations: 276.8 kB / 1.09 GB, free: 15.06 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002225/0.2661, allocations: 58.47 kB / 1.09 GB, free: 15 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001723/0.2663, allocations: 40.92 kB / 1.09 GB, free: 14.95 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.308e-05/0.2663, allocations: 0 / 1.09 GB, free: 14.95 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.444e-05/0.2663, allocations: 38.55 kB / 1.09 GB, free: 14.91 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=3): time 9.71e-07/0.2664, allocations: 0 / 1.09 GB, free: 14.91 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3): time 0.0005384/0.2669, allocations: 121.6 kB / 1.09 GB, free: 14.78 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.152e-05/0.267, allocations: 55.41 kB / 1.09 GB, free: 14.71 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.882e-05/0.267, allocations: 113.8 kB / 1.091 GB, free: 14.59 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.332e-05/0.2671, allocations: 29.7 kB / 1.091 GB, free: 14.56 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.032e-05/0.2671, allocations: 84.14 kB / 1.091 GB, free: 14.47 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.465e-05/0.2672, allocations: 19.73 kB / 1.091 GB, free: 14.45 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.735e-05/0.2672, allocations: 13.72 kB / 1.091 GB, free: 14.43 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001114/0.2673, allocations: 314.8 kB / 1.091 GB, free: 14.12 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001489/0.2675, allocations: 35.89 kB / 1.091 GB, free: 14.08 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001467/0.2676, allocations: 39.91 kB / 1.091 GB, free: 14.04 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002816/0.2679, allocations: 68.72 kB / 1.091 GB, free: 13.97 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-06/0.2679, allocations: 0 / 1.091 GB, free: 13.97 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003214/0.2683, allocations: 97.62 kB / 1.091 GB, free: 13.87 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.8e-05/0.2683, allocations: 8 kB / 1.091 GB, free: 13.86 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.58e-06/0.2683, allocations: 0 / 1.091 GB, free: 13.86 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.6e-05/0.2683, allocations: 0 / 1.091 GB, free: 13.86 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001446/0.2685, allocations: 19.91 kB / 1.091 GB, free: 13.84 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.374e-06/0.2685, allocations: 4 kB / 1.091 GB, free: 13.84 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.043e-05/0.2686, allocations: 7.984 kB / 1.091 GB, free: 13.83 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.708e-06/0.2686, allocations: 4 kB / 1.091 GB, free: 13.83 MB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000102/0.2687, allocations: 121.7 kB / 1.091 GB, free: 13.7 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.044e-05/0.2687, allocations: 7.906 kB / 1.091 GB, free: 13.69 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.935e-05/0.2688, allocations: 3.906 kB / 1.091 GB, free: 13.68 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.005e-06/0.2688, allocations: 0 / 1.091 GB, free: 13.68 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.05e-06/0.2688, allocations: 0 / 1.091 GB, free: 13.68 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.615e-06/0.2688, allocations: 0 / 1.091 GB, free: 13.68 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002036/0.269, allocations: 173.6 kB / 1.092 GB, free: 13.46 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.853e-06/0.269, allocations: 0 / 1.092 GB, free: 13.46 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.923e-05/0.2691, allocations: 15.98 kB / 1.092 GB, free: 13.45 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.166e-06/0.2691, allocations: 4 kB / 1.092 GB, free: 13.45 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.536e-06/0.2691, allocations: 0 / 1.092 GB, free: 13.45 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/0.2692, allocations: 0 / 1.092 GB, free: 13.45 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.764e-06/0.2692, allocations: 0 / 1.092 GB, free: 13.45 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003953/0.2696, allocations: 199.7 kB / 1.092 GB, free: 13.23 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.874e-05/0.2696, allocations: 89.06 kB / 1.092 GB, free: 13.13 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.673e-05/0.2696, allocations: 3.984 kB / 1.092 GB, free: 13.12 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000107/0.2698, allocations: 15.98 kB / 1.092 GB, free: 13.11 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.117e-05/0.2698, allocations: 7.984 kB / 1.092 GB, free: 13.1 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.757e-06/0.2698, allocations: 0 / 1.092 GB, free: 13.1 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 5.322e-05/0.2699, allocations: 83.28 kB / 1.092 GB, free: 13.02 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.31e-07/0.2699, allocations: 0 / 1.092 GB, free: 13.02 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002295/0.2701, allocations: 12 kB / 1.092 GB, free: 13.01 MB / 0.8575 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 (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006846/0.2708, allocations: 0.728 MB / 1.093 GB, free: 12.25 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003529/0.2712, allocations: 71.86 kB / 1.093 GB, free: 12.18 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.2712, allocations: 3.938 kB / 1.093 GB, free: 12.18 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001639/0.2714, allocations: 39.95 kB / 1.093 GB, free: 12.14 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003378/0.2717, allocations: 7.938 kB / 1.093 GB, free: 12.13 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005086/0.2722, allocations: 171.1 kB / 1.093 GB, free: 11.93 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002596/0.2725, allocations: 0.6807 MB / 1.094 GB, free: 11.22 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.84e-05/0.2726, allocations: 0 / 1.094 GB, free: 11.22 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.793e-05/0.2726, allocations: 11.44 kB / 1.094 GB, free: 11.21 MB / 0.8575 GB Notification: Performance of SimCode: time 3.61e-07/0.2726, allocations: 0 / 1.094 GB, free: 11.21 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01758/0.2902, allocations: 1.632 MB / 1.095 GB, free: 9.676 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.766/8.056, allocations: 12.3 kB / 1.095 GB, free: 9.668 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Subtract.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Subtract.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Subtract.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Subtract.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Subtract_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_Controls_OBC_CDL_Continuous_Validation_Subtract.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Subtract.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Subtract_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_Subtract.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Subtract.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches