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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001221/0.001221, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001318/0.001318, allocations: 197.9 kB / 16.14 MB, free: 6.719 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.275/1.275, allocations: 222.9 MB / 239.8 MB, free: 4.629 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.183/2.183, allocations: 390.2 MB / 0.6643 GB, free: 0.6016 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001416/0.001416, allocations: 67.91 kB / 0.812 GB, free: 14.76 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6349/0.6363, allocations: 140.4 MB / 0.9491 GB, free: 9.18 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Subtract): time 0.002071/0.6384, allocations: 0.7654 MB / 0.9498 GB, free: 8.594 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0008955/0.6393, allocations: 0.7994 MB / 0.9506 GB, free: 7.938 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.479e-05/0.6394, allocations: 1.375 kB / 0.9506 GB, free: 7.938 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.571e-05/0.6394, allocations: 3.984 kB / 0.9506 GB, free: 7.934 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.623e-05/0.6395, allocations: 5.312 kB / 0.9506 GB, free: 7.93 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 5.84e-05/0.6396, allocations: 9.375 kB / 0.9506 GB, free: 7.922 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.146e-05/0.6397, allocations: 44.34 kB / 0.9507 GB, free: 7.895 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001027/0.6398, allocations: 9.5 kB / 0.9507 GB, free: 7.891 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.473e-05/0.6399, allocations: 13.48 kB / 0.9507 GB, free: 7.883 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.525e-05/0.6399, allocations: 29.28 kB / 0.9507 GB, free: 7.859 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.879e-05/0.6399, allocations: 2.75 kB / 0.9507 GB, free: 7.859 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 9.948e-06/0.64, allocations: 1.375 kB / 0.9507 GB, free: 7.859 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.623e-05/0.64, allocations: 9.359 kB / 0.9507 GB, free: 7.852 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.813e-05/0.64, allocations: 16.05 kB / 0.9507 GB, free: 7.84 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 7.215e-05/0.6401, allocations: 38.69 kB / 0.9508 GB, free: 7.809 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.6401, allocations: 0 / 0.9508 GB, free: 7.809 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.052e-06/0.6401, allocations: 4 kB / 0.9508 GB, free: 7.805 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.208e-06/0.6401, allocations: 0 / 0.9508 GB, free: 7.805 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0004207/0.6405, allocations: 370.3 kB / 0.9511 GB, free: 7.418 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.304e-05/0.6406, allocations: 9.625 kB / 0.9511 GB, free: 7.418 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.746e-05/0.6406, allocations: 30.75 kB / 0.9512 GB, free: 7.379 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.411e-05/0.6406, allocations: 7.672 kB / 0.9512 GB, free: 7.375 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.932e-05/0.6407, allocations: 167 kB / 0.9513 GB, free: 7.176 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.508e-06/0.6407, allocations: 1.75 kB / 0.9513 GB, free: 7.176 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.047e-06/0.6408, allocations: 9.688 kB / 0.9513 GB, free: 7.168 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002242/0.641, allocations: 66.84 kB / 0.9514 GB, free: 7.117 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.227e-06/0.641, allocations: 7.875 kB / 0.9514 GB, free: 7.109 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.887e-06/0.641, allocations: 1.375 kB / 0.9514 GB, free: 7.109 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.859e-06/0.641, allocations: 0 / 0.9514 GB, free: 7.109 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002638/0.6413, allocations: 67.67 kB / 0.9515 GB, free: 7.078 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002775/0.6416, allocations: 270.6 kB / 0.9517 GB, free: 6.777 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001792/0.6418, allocations: 57.06 kB / 0.9518 GB, free: 6.734 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001394/0.6419, allocations: 46.77 kB / 0.9518 GB, free: 6.707 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.261e-05/0.6419, allocations: 0 / 0.9518 GB, free: 6.707 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.279e-05/0.642, allocations: 31.91 kB / 0.9519 GB, free: 6.668 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 9.22e-07/0.642, allocations: 0 / 0.9519 GB, free: 6.668 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0004704/0.6424, allocations: 134 kB / 0.952 GB, free: 6.586 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.237e-05/0.6425, allocations: 55.41 kB / 0.9521 GB, free: 6.52 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.887e-05/0.6425, allocations: 112.3 kB / 0.9522 GB, free: 6.41 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 6.933e-06/0.6425, allocations: 25.7 kB / 0.9522 GB, free: 6.379 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.593e-05/0.6426, allocations: 85.48 kB / 0.9523 GB, free: 6.293 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.71e-05/0.6426, allocations: 13.42 kB / 0.9523 GB, free: 6.281 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.848e-05/0.6426, allocations: 12.44 kB / 0.9523 GB, free: 6.266 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.228e-05/0.6427, allocations: 320.2 kB / 0.9526 GB, free: 5.945 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001355/0.6428, allocations: 36.89 kB / 0.9526 GB, free: 5.926 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001183/0.6429, allocations: 30 kB / 0.9527 GB, free: 5.914 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002365/0.6432, allocations: 75.89 kB / 0.9527 GB, free: 5.871 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.895e-06/0.6432, allocations: 4 kB / 0.9527 GB, free: 5.867 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002665/0.6435, allocations: 101.8 kB / 0.9528 GB, free: 5.801 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.249e-05/0.6435, allocations: 4.281 kB / 0.9528 GB, free: 5.801 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.118e-06/0.6435, allocations: 0 / 0.9528 GB, free: 5.801 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.273e-05/0.6435, allocations: 1.406 kB / 0.9528 GB, free: 5.801 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001191/0.6436, allocations: 13.64 kB / 0.9528 GB, free: 5.797 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.314e-06/0.6436, allocations: 9.5 kB / 0.9529 GB, free: 5.789 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.284e-05/0.6437, allocations: 18.16 kB / 0.9529 GB, free: 5.777 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.736e-06/0.6437, allocations: 1.031 kB / 0.9529 GB, free: 5.777 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: 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 5.031e-05/0.6438, allocations: 116.1 kB / 0.953 GB, free: 5.656 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.252e-05/0.6438, allocations: 1.25 kB / 0.953 GB, free: 5.656 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.248e-05/0.6438, allocations: 9.25 kB / 0.953 GB, free: 5.645 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.6439, allocations: 1.25 kB / 0.953 GB, free: 5.645 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.6439, allocations: 0 / 0.953 GB, free: 5.645 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.204e-06/0.6439, allocations: 4 kB / 0.953 GB, free: 5.641 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001105/0.644, allocations: 169.1 kB / 0.9532 GB, free: 5.434 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.644, allocations: 1.125 kB / 0.9532 GB, free: 5.434 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.177e-05/0.6441, allocations: 14.61 kB / 0.9532 GB, free: 5.43 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.6441, allocations: 0 / 0.9532 GB, free: 5.43 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.365e-06/0.6441, allocations: 7.938 kB / 0.9532 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.6441, allocations: 1.281 kB / 0.9532 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.6441, allocations: 0 / 0.9532 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002943/0.6444, allocations: 204.1 kB / 0.9534 GB, free: 5.246 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.915e-05/0.6444, allocations: 78.45 kB / 0.9535 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.492e-05/0.6445, allocations: 1.281 kB / 0.9535 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.978e-05/0.6446, allocations: 13.55 kB / 0.9535 GB, free: 5.145 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.868e-05/0.6446, allocations: 6.328 kB / 0.9535 GB, free: 5.141 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.549e-06/0.6446, allocations: 5.125 kB / 0.9535 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.788e-05/0.6447, allocations: 85.84 kB / 0.9536 GB, free: 5.059 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.6447, allocations: 0 / 0.9536 GB, free: 5.059 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002075/0.6449, allocations: 6.031 kB / 0.9536 GB, free: 5.059 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: 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.0005041/0.6454, allocations: 0.7329 MB / 0.9543 GB, free: 4.359 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002959/0.6457, allocations: 70.17 kB / 0.9544 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.6457, allocations: 0 / 0.9544 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001358/0.6458, allocations: 40.55 kB / 0.9544 GB, free: 4.309 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002916/0.6461, allocations: 5.562 kB / 0.9544 GB, free: 4.309 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003703/0.6465, allocations: 161.5 kB / 0.9546 GB, free: 4.133 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.632e-05/0.6466, allocations: 0.6801 MB / 0.9552 GB, free: 3.434 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.128e-05/0.6467, allocations: 5.125 kB / 0.9552 GB, free: 3.43 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.767e-05/0.6467, allocations: 12.88 kB / 0.9552 GB, free: 3.418 MB / 0.7169 GB Notification: Performance of SimCode: time 3.31e-07/0.6467, allocations: 0 / 0.9552 GB, free: 3.418 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4452/1.092, allocations: 1.367 MB / 0.9566 GB, free: 2.723 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001869/1.092, allocations: 206 kB / 0.9568 GB, free: 2.469 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.024/3.116, allocations: 3.844 kB / 0.9568 GB, free: 2.469 MB / 0.7169 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Subtract_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Subtract_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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.mat","/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