Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Integers.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.Integers.Validation.Subtract,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Integers_Validation_Subtract",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.Subtract,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Integers_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.001124/0.001124, allocations: 108 kB / 15.6 MB, free: 132 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.002171/0.002171, allocations: 194.8 kB / 16.53 MB, free: 6.391 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.352/1.352, allocations: 222.9 MB / 240.2 MB, free: 4.375 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.406/2.406, allocations: 390.2 MB / 0.6647 GB, free: 240 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.002098/0.002098, allocations: 63.91 kB / 0.8127 GB, free: 14.11 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6339/0.636, allocations: 140.4 MB / 0.9497 GB, free: 9.176 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Subtract): time 0.001975/0.638, allocations: 0.7558 MB / 0.9505 GB, free: 8.59 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0008992/0.639, allocations: 0.8672 MB / 0.9513 GB, free: 7.879 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.699e-05/0.639, allocations: 5.156 kB / 0.9513 GB, free: 7.875 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.658e-05/0.6391, allocations: 7.875 kB / 0.9513 GB, free: 7.867 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.089e-05/0.6392, allocations: 9.094 kB / 0.9513 GB, free: 7.859 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001515/0.6393, allocations: 43.09 kB / 0.9514 GB, free: 7.824 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 9.121e-05/0.6394, allocations: 86.67 kB / 0.9515 GB, free: 7.773 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000116/0.6395, allocations: 26.89 kB / 0.9515 GB, free: 7.758 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.207e-05/0.6396, allocations: 37.5 kB / 0.9515 GB, free: 7.734 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.816e-05/0.6397, allocations: 48.2 kB / 0.9516 GB, free: 7.699 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.871e-05/0.6398, allocations: 8.438 kB / 0.9516 GB, free: 7.699 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.837e-05/0.6398, allocations: 6.906 kB / 0.9516 GB, free: 7.699 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.603e-05/0.6398, allocations: 22.7 kB / 0.9516 GB, free: 7.68 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.479e-05/0.6399, allocations: 34.23 kB / 0.9516 GB, free: 7.652 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001159/0.64, allocations: 86.94 kB / 0.9517 GB, free: 7.582 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.95e-06/0.64, allocations: 5.375 kB / 0.9517 GB, free: 7.578 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.353e-06/0.64, allocations: 0 / 0.9517 GB, free: 7.578 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.889e-06/0.64, allocations: 0 / 0.9517 GB, free: 7.578 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0005435/0.6406, allocations: 393.4 kB / 0.9521 GB, free: 7.18 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.471e-05/0.6406, allocations: 9.469 kB / 0.9521 GB, free: 7.18 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.557e-05/0.6406, allocations: 36.91 kB / 0.9522 GB, free: 7.137 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.236e-05/0.6407, allocations: 8.719 kB / 0.9522 GB, free: 7.133 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.577e-05/0.6408, allocations: 184.7 kB / 0.9523 GB, free: 6.918 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.58e-05/0.6408, allocations: 7.344 kB / 0.9523 GB, free: 6.914 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.574e-05/0.6408, allocations: 8.188 kB / 0.9524 GB, free: 6.91 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002811/0.6411, allocations: 108.2 kB / 0.9525 GB, free: 6.832 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.115e-06/0.6411, allocations: 1.375 kB / 0.9525 GB, free: 6.832 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.378e-05/0.6411, allocations: 4 kB / 0.9525 GB, free: 6.828 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.859e-06/0.6412, allocations: 1.094 kB / 0.9525 GB, free: 6.828 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003621/0.6415, allocations: 100.1 kB / 0.9526 GB, free: 6.781 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004423/0.642, allocations: 351.1 kB / 0.9529 GB, free: 6.426 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005944/0.6426, allocations: 122.7 kB / 0.953 GB, free: 6.352 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001892/0.6428, allocations: 61.31 kB / 0.9531 GB, free: 6.316 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.77e-05/0.6428, allocations: 1.062 kB / 0.9531 GB, free: 6.316 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.477e-05/0.6428, allocations: 31.62 kB / 0.9531 GB, free: 6.277 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.232e-06/0.6428, allocations: 0 / 0.9531 GB, free: 6.277 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0006382/0.6435, allocations: 184.8 kB / 0.9533 GB, free: 6.172 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.242e-05/0.6435, allocations: 51.41 kB / 0.9533 GB, free: 6.109 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.231e-05/0.6436, allocations: 129.9 kB / 0.9534 GB, free: 5.988 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.122e-05/0.6436, allocations: 29.7 kB / 0.9535 GB, free: 5.953 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.209e-05/0.6436, allocations: 95.69 kB / 0.9536 GB, free: 5.859 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.395e-05/0.6437, allocations: 22.28 kB / 0.9536 GB, free: 5.84 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.449e-05/0.6437, allocations: 23.52 kB / 0.9536 GB, free: 5.816 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.778e-05/0.6438, allocations: 317.5 kB / 0.9539 GB, free: 5.5 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001813/0.644, allocations: 55.17 kB / 0.954 GB, free: 5.469 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001685/0.6441, allocations: 45.23 kB / 0.954 GB, free: 5.449 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003341/0.6445, allocations: 97.17 kB / 0.9541 GB, free: 5.398 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.6445, allocations: 1.062 kB / 0.9541 GB, free: 5.398 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0003902/0.6449, allocations: 132.5 kB / 0.9542 GB, free: 5.32 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.482e-05/0.6449, allocations: 12.38 kB / 0.9542 GB, free: 5.312 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.31e-06/0.6449, allocations: 0 / 0.9542 GB, free: 5.312 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.288e-05/0.6449, allocations: 1.312 kB / 0.9542 GB, free: 5.312 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001641/0.6451, allocations: 27.31 kB / 0.9543 GB, free: 5.301 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.051e-06/0.6451, allocations: 1.188 kB / 0.9543 GB, free: 5.301 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001162/0.6452, allocations: 23.09 kB / 0.9543 GB, free: 5.285 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.728e-06/0.6452, allocations: 1.344 kB / 0.9543 GB, free: 5.285 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (reaToInt1.y,reaToInt.y,sub.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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 6.267e-05/0.6453, allocations: 114 kB / 0.9544 GB, free: 5.168 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.271e-05/0.6453, allocations: 11.31 kB / 0.9544 GB, free: 5.16 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.348e-05/0.6454, allocations: 9.781 kB / 0.9544 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.6454, allocations: 1.25 kB / 0.9544 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.6454, allocations: 3.984 kB / 0.9544 GB, free: 5.148 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.035e-06/0.6454, allocations: 3.938 kB / 0.9544 GB, free: 5.145 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001513/0.6456, allocations: 195.8 kB / 0.9546 GB, free: 4.922 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-06/0.6456, allocations: 1.281 kB / 0.9546 GB, free: 4.922 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001794/0.6457, allocations: 23.78 kB / 0.9546 GB, free: 4.914 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.514e-06/0.6458, allocations: 0 / 0.9546 GB, free: 4.914 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.213e-05/0.6458, allocations: 13.39 kB / 0.9547 GB, free: 4.902 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.6458, allocations: 0 / 0.9547 GB, free: 4.902 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.6458, allocations: 1.5 kB / 0.9547 GB, free: 4.902 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004163/0.6462, allocations: 235.2 kB / 0.9549 GB, free: 4.715 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.914e-05/0.6462, allocations: 79.95 kB / 0.955 GB, free: 4.621 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.934e-05/0.6463, allocations: 8 kB / 0.955 GB, free: 4.613 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001412/0.6464, allocations: 14.98 kB / 0.955 GB, free: 4.605 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.58e-05/0.6465, allocations: 26.41 kB / 0.955 GB, free: 4.586 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.836e-06/0.6465, allocations: 2.438 kB / 0.955 GB, free: 4.586 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.594e-05/0.6465, allocations: 93.48 kB / 0.9551 GB, free: 4.504 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.71e-07/0.6465, allocations: 0 / 0.9551 GB, free: 4.504 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000239/0.6468, allocations: 20.47 kB / 0.9551 GB, free: 4.496 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (sub.y,reaToInt.y,reaToInt1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 7 * 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.0005864/0.6474, allocations: 0.7722 MB / 0.9559 GB, free: 3.773 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004006/0.6478, allocations: 109.9 kB / 0.956 GB, free: 3.723 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.6478, allocations: 0 / 0.956 GB, free: 3.723 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001972/0.648, allocations: 63.95 kB / 0.956 GB, free: 3.695 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003024/0.6483, allocations: 23.3 kB / 0.9561 GB, free: 3.676 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0019/0.6502, allocations: 1.522 MB / 0.9575 GB, free: 2.305 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001592/0.6504, allocations: 0.7015 MB / 0.9582 GB, free: 1.59 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 8.474e-05/0.6505, allocations: 10.62 kB / 0.9582 GB, free: 1.586 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.226e-05/0.6506, allocations: 30.08 kB / 0.9583 GB, free: 1.562 MB / 0.7169 GB Notification: Performance of SimCode: time 2.2e-07/0.6506, allocations: 0 / 0.9583 GB, free: 1.562 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01968/0.6703, allocations: 2.659 MB / 0.9609 GB, free: 172 kB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.474/8.145, allocations: 7.156 kB / 0.9609 GB, free: 168 kB / 0.7169 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Subtract.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Subtract.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Subtract.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Subtract.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Subtract_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Integers_Validation_Subtract_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Integers_Validation_Subtract.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Subtract.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Subtract_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Integers_Validation_Subtract.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Subtract.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches