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: translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.Subtract,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sub.u1|sub.u2|sub.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Subtract") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.Subtract,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sub.u1|sub.u2|sub.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Subtract") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00123/0.001229, allocations: 92.16 kB / 16.02 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.0018/0.001799, allocations: 172.9 kB / 16.92 MB, free: 6.652 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.479/1.479, allocations: 223.3 MB / 241 MB, free: 5.352 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.429/2.429, allocations: 390.9 MB / 0.667 GB, free: 2.344 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.000399/0.0003989, allocations: 8 kB / 0.8166 GB, free: 13.26 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.742/0.7424, allocations: 142.4 MB / 0.9557 GB, free: 7.809 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Subtract): time 0.001039/0.7435, allocations: 444.6 kB / 0.9561 GB, free: 7.473 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009183/0.7445, allocations: 0.805 MB / 0.9569 GB, free: 6.812 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.537e-05/0.7445, allocations: 0 / 0.9569 GB, free: 6.812 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.92e-05/0.7446, allocations: 0 / 0.9569 GB, free: 6.812 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.897e-05/0.7447, allocations: 5.188 kB / 0.9569 GB, free: 6.809 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 6.571e-05/0.7447, allocations: 10.17 kB / 0.9569 GB, free: 6.801 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.187e-05/0.7448, allocations: 36.67 kB / 0.957 GB, free: 6.781 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001231/0.7449, allocations: 16.64 kB / 0.957 GB, free: 6.77 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.055e-05/0.745, allocations: 9.562 kB / 0.957 GB, free: 6.766 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.349e-05/0.7451, allocations: 24.41 kB / 0.957 GB, free: 6.746 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.944e-05/0.7451, allocations: 2.062 kB / 0.957 GB, free: 6.746 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.016e-05/0.7451, allocations: 1.969 kB / 0.957 GB, free: 6.746 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.919e-05/0.7451, allocations: 8.938 kB / 0.957 GB, free: 6.738 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.799e-05/0.7452, allocations: 40.72 kB / 0.9571 GB, free: 6.695 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 6.877e-05/0.7453, allocations: 29.02 kB / 0.9571 GB, free: 6.672 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.7453, allocations: 1.219 kB / 0.9571 GB, free: 6.672 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.803e-06/0.7453, allocations: 4 kB / 0.9571 GB, free: 6.668 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.008e-06/0.7453, allocations: 0 / 0.9571 GB, free: 6.668 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.000478/0.7458, allocations: 365.3 kB / 0.9575 GB, free: 6.293 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.364e-05/0.7458, allocations: 10.12 kB / 0.9575 GB, free: 6.293 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.566e-05/0.7459, allocations: 10.25 kB / 0.9575 GB, free: 6.285 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001175/0.746, allocations: 175.2 kB / 0.9577 GB, free: 6.078 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.547e-05/0.746, allocations: 1.75 kB / 0.9577 GB, free: 6.078 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.284e-05/0.7461, allocations: 1.781 kB / 0.9577 GB, free: 6.078 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002806/0.7463, allocations: 76.81 kB / 0.9577 GB, free: 6.027 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.576e-06/0.7464, allocations: 4.188 kB / 0.9577 GB, free: 6.023 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.319e-05/0.7464, allocations: 5.406 kB / 0.9577 GB, free: 6.02 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.34e-06/0.7464, allocations: 0 / 0.9577 GB, free: 6.02 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003239/0.7467, allocations: 90.27 kB / 0.9578 GB, free: 5.984 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003474/0.7471, allocations: 264.2 kB / 0.9581 GB, free: 5.691 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002309/0.7473, allocations: 66.67 kB / 0.9581 GB, free: 5.648 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001794/0.7475, allocations: 59.44 kB / 0.9582 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.501e-05/0.7475, allocations: 4 kB / 0.9582 GB, free: 5.613 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.896e-05/0.7476, allocations: 35.66 kB / 0.9582 GB, free: 5.57 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.232e-06/0.7476, allocations: 0 / 0.9582 GB, free: 5.57 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0005791/0.7481, allocations: 159.7 kB / 0.9584 GB, free: 5.492 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.65e-05/0.7482, allocations: 55.41 kB / 0.9584 GB, free: 5.426 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.606e-05/0.7483, allocations: 108.4 kB / 0.9585 GB, free: 5.32 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 9.808e-06/0.7483, allocations: 29.7 kB / 0.9586 GB, free: 5.285 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.015e-05/0.7483, allocations: 85.39 kB / 0.9587 GB, free: 5.199 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.886e-05/0.7483, allocations: 13.75 kB / 0.9587 GB, free: 5.188 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.208e-05/0.7484, allocations: 15.03 kB / 0.9587 GB, free: 5.168 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.848e-05/0.7484, allocations: 316.1 kB / 0.959 GB, free: 4.852 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001517/0.7486, allocations: 42.47 kB / 0.959 GB, free: 4.836 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001427/0.7487, allocations: 47.83 kB / 0.9591 GB, free: 4.816 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002739/0.749, allocations: 89.86 kB / 0.9592 GB, free: 4.777 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.125e-06/0.749, allocations: 5.719 kB / 0.9592 GB, free: 4.773 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003163/0.7493, allocations: 120.2 kB / 0.9593 GB, free: 4.707 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.585e-05/0.7494, allocations: 4.125 kB / 0.9593 GB, free: 4.707 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.529e-06/0.7494, allocations: 1.375 kB / 0.9593 GB, free: 4.707 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.3e-05/0.7494, allocations: 0 / 0.9593 GB, free: 4.707 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001299/0.7495, allocations: 19.11 kB / 0.9593 GB, free: 4.703 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.799e-06/0.7495, allocations: 0 / 0.9593 GB, free: 4.703 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.917e-05/0.7496, allocations: 24.36 kB / 0.9593 GB, free: 4.691 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.474e-06/0.7496, allocations: 1.375 kB / 0.9593 GB, free: 4.691 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.357e-05/0.7497, allocations: 119.1 kB / 0.9594 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.529e-05/0.7497, allocations: 6.656 kB / 0.9594 GB, free: 4.562 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.308e-05/0.7497, allocations: 9.281 kB / 0.9594 GB, free: 4.551 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.434e-06/0.7497, allocations: 4.328 kB / 0.9595 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.008e-06/0.7498, allocations: 0 / 0.9595 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.665e-06/0.7498, allocations: 1.375 kB / 0.9595 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001216/0.7499, allocations: 180.4 kB / 0.9596 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.163e-06/0.7499, allocations: 0 / 0.9596 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.596e-05/0.75, allocations: 23.09 kB / 0.9596 GB, free: 4.32 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.483e-06/0.75, allocations: 1.375 kB / 0.9596 GB, free: 4.32 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.524e-06/0.75, allocations: 0 / 0.9596 GB, free: 4.32 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.986e-06/0.75, allocations: 1.375 kB / 0.9597 GB, free: 4.32 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.75, allocations: 3.938 kB / 0.9597 GB, free: 4.316 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003415/0.7504, allocations: 219.1 kB / 0.9599 GB, free: 4.145 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.929e-05/0.7504, allocations: 85.94 kB / 0.9599 GB, free: 4.043 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.183e-05/0.7504, allocations: 1.094 kB / 0.9599 GB, free: 4.043 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001076/0.7505, allocations: 16.52 kB / 0.96 GB, free: 4.039 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.805e-05/0.7506, allocations: 5.625 kB / 0.96 GB, free: 4.035 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.086e-06/0.7506, allocations: 0 / 0.96 GB, free: 4.035 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.806e-05/0.7506, allocations: 98.59 kB / 0.9601 GB, free: 3.945 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7506, allocations: 0 / 0.9601 GB, free: 3.945 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002097/0.7508, allocations: 5.938 kB / 0.9601 GB, free: 3.945 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.000115/0.751, allocations: 98.19 kB / 0.9602 GB, free: 3.859 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003627/0.7513, allocations: 89.98 kB / 0.9602 GB, free: 3.828 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.7513, allocations: 0 / 0.9602 GB, free: 3.828 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001626/0.7515, allocations: 54.2 kB / 0.9603 GB, free: 3.805 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002956/0.7518, allocations: 12.19 kB / 0.9603 GB, free: 3.797 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000282/0.7521, allocations: 162.6 kB / 0.9605 GB, free: 3.625 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000105/0.7522, allocations: 0.6882 MB / 0.9611 GB, free: 2.918 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.987e-05/0.7523, allocations: 8.656 kB / 0.9611 GB, free: 2.91 MB / 0.7169 GB Notification: Performance of SimCode: time 3.5e-07/0.7523, allocations: 0 / 0.9611 GB, free: 2.91 MB / 0.7169 GB Notification: Performance of Templates: time 0.001894/0.7542, allocations: 0.728 MB / 0.9619 GB, free: 2.551 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Subtract.makefile (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 & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Subtract -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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