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.001209/0.001208, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.001436/0.001436, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.473/1.473, allocations: 223.3 MB / 240 MB, free: 5.406 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.555/2.555, allocations: 390.9 MB / 0.666 GB, free: 2.43 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003693/0.0003695, allocations: 19.94 kB / 0.8154 GB, free: 13.59 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8496/0.85, allocations: 142.4 MB / 0.9545 GB, free: 7.723 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Subtract): time 0.0008545/0.8509, allocations: 426.7 kB / 0.9549 GB, free: 7.402 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0008726/0.8518, allocations: 0.7914 MB / 0.9556 GB, free: 6.754 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.65e-05/0.8518, allocations: 1.219 kB / 0.9556 GB, free: 6.754 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.757e-05/0.8519, allocations: 11.92 kB / 0.9557 GB, free: 6.742 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.405e-05/0.852, allocations: 9.047 kB / 0.9557 GB, free: 6.734 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 5.769e-05/0.852, allocations: 8.953 kB / 0.9557 GB, free: 6.727 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.63e-05/0.8521, allocations: 34.86 kB / 0.9557 GB, free: 6.707 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.918e-05/0.8522, allocations: 7.438 kB / 0.9557 GB, free: 6.703 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.766e-05/0.8523, allocations: 17.52 kB / 0.9557 GB, free: 6.691 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.508e-05/0.8523, allocations: 17.23 kB / 0.9557 GB, free: 6.68 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.89e-05/0.8524, allocations: 6.188 kB / 0.9558 GB, free: 6.676 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 8.396e-06/0.8524, allocations: 6.281 kB / 0.9558 GB, free: 6.672 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.209e-05/0.8524, allocations: 3.984 kB / 0.9558 GB, free: 6.668 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 1.99e-05/0.8524, allocations: 35.8 kB / 0.9558 GB, free: 6.629 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 5.499e-05/0.8525, allocations: 26.44 kB / 0.9558 GB, free: 6.609 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.8525, allocations: 0 / 0.9558 GB, free: 6.609 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.462e-06/0.8525, allocations: 0 / 0.9558 GB, free: 6.609 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.21e-06/0.8525, allocations: 1.156 kB / 0.9558 GB, free: 6.609 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.0004443/0.853, allocations: 368.1 kB / 0.9562 GB, free: 6.234 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.061e-05/0.853, allocations: 9.25 kB / 0.9562 GB, free: 6.234 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.914e-05/0.853, allocations: 14.42 kB / 0.9562 GB, free: 6.223 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.844e-05/0.8531, allocations: 165.2 kB / 0.9564 GB, free: 6.023 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.41e-05/0.8532, allocations: 1.344 kB / 0.9564 GB, free: 6.023 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.196e-05/0.8532, allocations: 6.328 kB / 0.9564 GB, free: 6.02 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002452/0.8534, allocations: 84.03 kB / 0.9564 GB, free: 5.961 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.506e-06/0.8534, allocations: 0 / 0.9564 GB, free: 5.961 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.239e-05/0.8535, allocations: 5.031 kB / 0.9564 GB, free: 5.957 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.129e-06/0.8535, allocations: 0 / 0.9564 GB, free: 5.957 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002689/0.8538, allocations: 91.06 kB / 0.9565 GB, free: 5.922 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003406/0.8541, allocations: 271.2 kB / 0.9568 GB, free: 5.621 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002006/0.8543, allocations: 70.47 kB / 0.9569 GB, free: 5.574 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001482/0.8545, allocations: 56.23 kB / 0.9569 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 9.949e-06/0.8545, allocations: 0 / 0.9569 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.074e-05/0.8545, allocations: 35.98 kB / 0.9569 GB, free: 5.504 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.142e-06/0.8545, allocations: 0 / 0.9569 GB, free: 5.504 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0004932/0.855, allocations: 162.6 kB / 0.9571 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.547e-05/0.8551, allocations: 52.41 kB / 0.9572 GB, free: 5.359 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.978e-05/0.8551, allocations: 107.1 kB / 0.9573 GB, free: 5.254 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 8.286e-06/0.8551, allocations: 29.7 kB / 0.9573 GB, free: 5.219 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.963e-05/0.8552, allocations: 82.02 kB / 0.9574 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.144e-05/0.8552, allocations: 21.8 kB / 0.9574 GB, free: 5.117 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.087e-06/0.8552, allocations: 7.938 kB / 0.9574 GB, free: 5.109 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.616e-05/0.8553, allocations: 311.9 kB / 0.9577 GB, free: 4.797 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001353/0.8554, allocations: 43.67 kB / 0.9577 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001193/0.8555, allocations: 42.44 kB / 0.9578 GB, free: 4.766 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001407/0.8557, allocations: 38.94 kB / 0.9578 GB, free: 4.754 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.664e-06/0.8557, allocations: 7.938 kB / 0.9578 GB, free: 4.746 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002875/0.856, allocations: 120.5 kB / 0.9579 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.776e-05/0.856, allocations: 6.156 kB / 0.9579 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-06/0.856, allocations: 0 / 0.9579 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.493e-05/0.856, allocations: 3.953 kB / 0.9579 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001351/0.8562, allocations: 19.77 kB / 0.958 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.855e-06/0.8562, allocations: 0 / 0.958 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.96e-05/0.8563, allocations: 20.73 kB / 0.958 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.915e-06/0.8563, allocations: 0 / 0.958 GB, free: 4.664 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.296e-05/0.8564, allocations: 116.9 kB / 0.9581 GB, free: 4.543 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.925e-05/0.8564, allocations: 9.672 kB / 0.9581 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.926e-05/0.8564, allocations: 9.656 kB / 0.9581 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.405e-06/0.8565, allocations: 0 / 0.9581 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.124e-06/0.8565, allocations: 3.953 kB / 0.9581 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.035e-06/0.8565, allocations: 0 / 0.9581 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001642/0.8566, allocations: 167.1 kB / 0.9583 GB, free: 4.316 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.8567, allocations: 4 kB / 0.9583 GB, free: 4.312 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001004/0.8568, allocations: 22.47 kB / 0.9583 GB, free: 4.305 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.158e-06/0.8568, allocations: 0 / 0.9583 GB, free: 4.305 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.927e-06/0.8568, allocations: 1.812 kB / 0.9583 GB, free: 4.305 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.726e-06/0.8568, allocations: 0 / 0.9583 GB, free: 4.305 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.8568, allocations: 0 / 0.9583 GB, free: 4.305 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000369/0.8572, allocations: 219.7 kB / 0.9585 GB, free: 4.133 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 4.341e-05/0.8572, allocations: 82.39 kB / 0.9586 GB, free: 4.035 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.085e-05/0.8573, allocations: 7.984 kB / 0.9586 GB, free: 4.027 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001044/0.8574, allocations: 16.36 kB / 0.9586 GB, free: 4.023 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.126e-05/0.8574, allocations: 9.25 kB / 0.9586 GB, free: 4.016 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.171e-06/0.8574, allocations: 1.375 kB / 0.9586 GB, free: 4.016 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.373e-05/0.8575, allocations: 92.72 kB / 0.9587 GB, free: 3.93 MB / 0.7169 GB Notification: Performance of sort global known variables: time 2.8e-07/0.8575, allocations: 4 kB / 0.9587 GB, free: 3.926 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002299/0.8577, allocations: 6.875 kB / 0.9587 GB, free: 3.926 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001404/0.8579, allocations: 102.3 kB / 0.9588 GB, free: 3.836 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003384/0.8582, allocations: 88.77 kB / 0.9589 GB, free: 3.805 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.524e-06/0.8582, allocations: 0.9688 kB / 0.9589 GB, free: 3.805 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001566/0.8584, allocations: 50.61 kB / 0.9589 GB, free: 3.785 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003503/0.8588, allocations: 12.5 kB / 0.959 GB, free: 3.777 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003147/0.8591, allocations: 125.9 kB / 0.9591 GB, free: 3.645 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00014/0.8592, allocations: 0.6806 MB / 0.9597 GB, free: 2.945 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.716e-05/0.8593, allocations: 9.047 kB / 0.9598 GB, free: 2.938 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.84e-05/0.8593, allocations: 8.75 kB / 0.9598 GB, free: 2.93 MB / 0.7169 GB Notification: Performance of SimCode: time 2.31e-07/0.8593, allocations: 0 / 0.9598 GB, free: 2.93 MB / 0.7169 GB Notification: Performance of Templates: time 0.002845/0.8622, allocations: 0.5209 MB / 0.9603 GB, free: 2.664 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/jenkins/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