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: 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.001241/0.001241, allocations: 108.1 kB / 16.41 MB, free: 6.5 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.00126/0.00126, allocations: 188.1 kB / 17.34 MB, free: 5.762 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.361/1.361, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.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.296/2.296, allocations: 390.3 MB / 0.6655 GB, free: 0.6523 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001382/0.001382, allocations: 71.88 kB / 0.9516 GB, free: 7.582 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7325/0.7339, allocations: 140.4 MB / 1.089 GB, free: 5.516 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Subtract): time 0.001695/0.7356, allocations: 0.6992 MB / 1.089 GB, free: 5.07 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0007428/0.7364, allocations: 0.8051 MB / 1.09 GB, free: 4.461 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.656e-05/0.7364, allocations: 1.125 kB / 1.09 GB, free: 4.461 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 2.785e-05/0.7365, allocations: 3.938 kB / 1.09 GB, free: 4.457 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 5.371e-05/0.7365, allocations: 5.641 kB / 1.09 GB, free: 4.453 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 5.539e-05/0.7366, allocations: 13.92 kB / 1.09 GB, free: 4.445 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 7.421e-05/0.7367, allocations: 43.17 kB / 1.09 GB, free: 4.426 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000105/0.7368, allocations: 11.08 kB / 1.09 GB, free: 4.422 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 6.231e-05/0.7369, allocations: 17.31 kB / 1.09 GB, free: 4.414 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 4.246e-05/0.7369, allocations: 26.06 kB / 1.09 GB, free: 4.398 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.595e-05/0.7369, allocations: 4 kB / 1.09 GB, free: 4.398 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 9.508e-06/0.7369, allocations: 4.031 kB / 1.09 GB, free: 4.398 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.854e-05/0.737, allocations: 7.062 kB / 1.09 GB, free: 4.395 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.044e-05/0.737, allocations: 21.45 kB / 1.09 GB, free: 4.379 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 8.676e-05/0.7371, allocations: 36.45 kB / 1.09 GB, free: 4.367 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.466e-06/0.7371, allocations: 4 kB / 1.09 GB, free: 4.363 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.403e-06/0.7371, allocations: 1.031 kB / 1.09 GB, free: 4.363 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.16e-06/0.7371, allocations: 0 / 1.09 GB, free: 4.363 MB / 0.8575 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.0004433/0.7376, allocations: 364.6 kB / 1.091 GB, free: 3.996 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.302e-05/0.7376, allocations: 9.25 kB / 1.091 GB, free: 3.996 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.947e-05/0.7376, allocations: 12.45 kB / 1.091 GB, free: 3.988 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.473e-05/0.7377, allocations: 165.6 kB / 1.091 GB, free: 3.793 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.126e-05/0.7377, allocations: 5.469 kB / 1.091 GB, free: 3.789 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.328e-05/0.7378, allocations: 2.531 kB / 1.091 GB, free: 3.789 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002322/0.738, allocations: 68.41 kB / 1.091 GB, free: 3.75 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.744e-06/0.738, allocations: 4.125 kB / 1.091 GB, free: 3.746 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.979e-06/0.738, allocations: 4.875 kB / 1.091 GB, free: 3.742 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.997e-06/0.738, allocations: 1.062 kB / 1.091 GB, free: 3.742 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000275/0.7383, allocations: 66.59 kB / 1.091 GB, free: 3.73 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002792/0.7386, allocations: 271.1 kB / 1.091 GB, free: 3.445 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001807/0.7388, allocations: 58.38 kB / 1.091 GB, free: 3.41 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001544/0.7389, allocations: 44.47 kB / 1.091 GB, free: 3.395 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.318e-05/0.739, allocations: 4.969 kB / 1.091 GB, free: 3.391 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.202e-05/0.739, allocations: 31.17 kB / 1.091 GB, free: 3.352 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=3): time 1.082e-06/0.739, allocations: 1.062 kB / 1.091 GB, free: 3.352 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3): time 0.0005037/0.7395, allocations: 131.7 kB / 1.092 GB, free: 3.301 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.131e-05/0.7395, allocations: 51.97 kB / 1.092 GB, free: 3.238 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.358e-05/0.7396, allocations: 111.6 kB / 1.092 GB, free: 3.133 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 7.614e-06/0.7396, allocations: 26.98 kB / 1.092 GB, free: 3.102 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 2.821e-05/0.7396, allocations: 86.97 kB / 1.092 GB, free: 3.016 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.828e-05/0.7397, allocations: 17.8 kB / 1.092 GB, free: 3 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.945e-05/0.7397, allocations: 12.59 kB / 1.092 GB, free: 2.984 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 4.192e-05/0.7397, allocations: 317.8 kB / 1.092 GB, free: 2.668 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001435/0.7399, allocations: 39.73 kB / 1.092 GB, free: 2.656 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001288/0.74, allocations: 30.84 kB / 1.092 GB, free: 2.652 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002533/0.7403, allocations: 66.03 kB / 1.092 GB, free: 2.637 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.7403, allocations: 8.938 kB / 1.092 GB, free: 2.629 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002961/0.7406, allocations: 94.05 kB / 1.092 GB, free: 2.59 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.398e-05/0.7406, allocations: 5.219 kB / 1.092 GB, free: 2.59 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.248e-06/0.7406, allocations: 0 / 1.092 GB, free: 2.59 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.439e-05/0.7406, allocations: 1.844 kB / 1.092 GB, free: 2.59 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001255/0.7408, allocations: 15.23 kB / 1.092 GB, free: 2.59 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.091e-06/0.7408, allocations: 8.062 kB / 1.092 GB, free: 2.582 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.9e-05/0.7409, allocations: 11.78 kB / 1.092 GB, free: 2.582 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.492e-06/0.7409, allocations: 5.156 kB / 1.092 GB, free: 2.578 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 5.509e-05/0.7409, allocations: 116.5 kB / 1.093 GB, free: 2.457 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.674e-05/0.741, allocations: 6.953 kB / 1.093 GB, free: 2.453 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.404e-05/0.741, allocations: 5.312 kB / 1.093 GB, free: 2.445 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.325e-06/0.741, allocations: 1.031 kB / 1.093 GB, free: 2.445 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/0.741, allocations: 4 kB / 1.093 GB, free: 2.441 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/0.741, allocations: 5.406 kB / 1.093 GB, free: 2.438 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001334/0.7412, allocations: 169.6 kB / 1.093 GB, free: 2.238 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.7412, allocations: 5.172 kB / 1.093 GB, free: 2.234 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001097/0.7413, allocations: 15.61 kB / 1.093 GB, free: 2.234 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.446e-06/0.7413, allocations: 0.7969 kB / 1.093 GB, free: 2.234 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.805e-06/0.7413, allocations: 4.875 kB / 1.093 GB, free: 2.23 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.462e-06/0.7413, allocations: 0 / 1.093 GB, free: 2.23 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.7413, allocations: 0.6875 kB / 1.093 GB, free: 2.23 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003257/0.7417, allocations: 198.2 kB / 1.093 GB, free: 2.082 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.064e-05/0.7417, allocations: 86.28 kB / 1.093 GB, free: 1.98 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.367e-05/0.7417, allocations: 2.078 kB / 1.093 GB, free: 1.98 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001061/0.7418, allocations: 10.58 kB / 1.093 GB, free: 1.98 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.333e-05/0.7419, allocations: 8.406 kB / 1.093 GB, free: 1.977 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.547e-06/0.7419, allocations: 0.625 kB / 1.093 GB, free: 1.977 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 2.976e-05/0.7419, allocations: 92.02 kB / 1.093 GB, free: 1.895 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7419, allocations: 0 / 1.093 GB, free: 1.895 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002191/0.7421, allocations: 6.531 kB / 1.093 GB, free: 1.895 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.0001247/0.7423, allocations: 102.8 kB / 1.093 GB, free: 1.809 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003336/0.7426, allocations: 71.77 kB / 1.093 GB, free: 1.797 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.7426, allocations: 0 / 1.093 GB, free: 1.797 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001445/0.7428, allocations: 38.5 kB / 1.093 GB, free: 1.789 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002973/0.7431, allocations: 17.41 kB / 1.093 GB, free: 1.777 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002807/0.7434, allocations: 139.9 kB / 1.093 GB, free: 1.637 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001037/0.7435, allocations: 0.6851 MB / 1.094 GB, free: 0.9375 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.106e-05/0.7435, allocations: 12.81 kB / 1.094 GB, free: 0.9297 MB / 0.8575 GB Notification: Performance of SimCode: time 2.2e-07/0.7435, allocations: 0.75 kB / 1.094 GB, free: 0.9297 MB / 0.8575 GB Notification: Performance of Templates: time 0.002055/0.7456, allocations: 0.7396 MB / 1.095 GB, free: 0.8867 MB / 0.8575 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