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.001543/0.001543, allocations: 114.5 kB / 16.37 MB, free: 5.984 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.001494/0.001494, allocations: 192.6 kB / 17.31 MB, free: 5.602 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.483/1.483, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.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.311/2.311, allocations: 390.3 MB / 0.6655 GB, free: 0.5234 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001379/0.001379, allocations: 65.41 kB / 0.814 GB, free: 32.61 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.328/0.3294, allocations: 140.4 MB / 0.9511 GB, free: 7.996 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Subtract): time 0.002194/0.3317, allocations: 0.6958 MB / 0.9518 GB, free: 7.301 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001232/0.3329, allocations: 0.8001 MB / 0.9526 GB, free: 6.488 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.969e-05/0.333, allocations: 0 / 0.9526 GB, free: 6.488 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 4.881e-05/0.3331, allocations: 7.922 kB / 0.9526 GB, free: 6.48 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 8.421e-05/0.3332, allocations: 11.94 kB / 0.9526 GB, free: 6.469 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 8.066e-05/0.3333, allocations: 11.98 kB / 0.9526 GB, free: 6.457 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001085/0.3334, allocations: 39.86 kB / 0.9527 GB, free: 6.418 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001519/0.3335, allocations: 11.98 kB / 0.9527 GB, free: 6.406 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 8.841e-05/0.3336, allocations: 23.86 kB / 0.9527 GB, free: 6.383 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 5.797e-05/0.3337, allocations: 19.92 kB / 0.9527 GB, free: 6.363 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.286e-05/0.3337, allocations: 4 kB / 0.9527 GB, free: 6.359 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 1.184e-05/0.3337, allocations: 4 kB / 0.9527 GB, free: 6.355 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 2.602e-05/0.3338, allocations: 11.98 kB / 0.9527 GB, free: 6.344 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 4.079e-05/0.3338, allocations: 23.8 kB / 0.9528 GB, free: 6.32 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001245/0.334, allocations: 39.88 kB / 0.9528 GB, free: 6.281 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 8.426e-06/0.334, allocations: 0 / 0.9528 GB, free: 6.281 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.746e-06/0.334, allocations: 0 / 0.9528 GB, free: 6.281 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 7.965e-06/0.334, allocations: 0 / 0.9528 GB, free: 6.281 MB / 0.7325 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.0007218/0.3347, allocations: 367.3 kB / 0.9532 GB, free: 5.871 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 6.064e-05/0.3348, allocations: 12.03 kB / 0.9532 GB, free: 5.859 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.768e-05/0.3348, allocations: 4.938 kB / 0.9532 GB, free: 5.855 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003191/0.3352, allocations: 176.2 kB / 0.9533 GB, free: 5.645 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.509e-05/0.3352, allocations: 384 / 0.9533 GB, free: 5.645 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.84e-05/0.3352, allocations: 4.375 kB / 0.9533 GB, free: 5.641 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002806/0.3355, allocations: 76.25 kB / 0.9534 GB, free: 5.562 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.024e-05/0.3355, allocations: 192 / 0.9534 GB, free: 5.562 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.291e-05/0.3355, allocations: 3.938 kB / 0.9534 GB, free: 5.559 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.941e-06/0.3355, allocations: 0 / 0.9534 GB, free: 5.559 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002694/0.3358, allocations: 67.92 kB / 0.9535 GB, free: 5.492 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004059/0.3362, allocations: 269 kB / 0.9537 GB, free: 5.18 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001955/0.3364, allocations: 54.42 kB / 0.9538 GB, free: 5.117 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001554/0.3366, allocations: 48.91 kB / 0.9538 GB, free: 5.066 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.485e-05/0.3366, allocations: 4 kB / 0.9538 GB, free: 5.062 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.565e-05/0.3367, allocations: 30.56 kB / 0.9539 GB, free: 5.023 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=3): time 1.182e-06/0.3367, allocations: 0 / 0.9539 GB, free: 5.023 MB / 0.7325 GB Notification: Performance of matching and sorting (n=3): time 0.0005247/0.3372, allocations: 129.5 kB / 0.954 GB, free: 4.891 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.106e-05/0.3373, allocations: 55.39 kB / 0.9541 GB, free: 4.824 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.528e-05/0.3374, allocations: 117.8 kB / 0.9542 GB, free: 4.699 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.306e-05/0.3374, allocations: 29.64 kB / 0.9542 GB, free: 4.664 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001664/0.3375, allocations: 80.14 kB / 0.9543 GB, free: 4.582 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.56e-05/0.3376, allocations: 11.89 kB / 0.9543 GB, free: 4.57 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.845e-05/0.3376, allocations: 17.72 kB / 0.9543 GB, free: 4.547 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001235/0.3378, allocations: 322.8 kB / 0.9546 GB, free: 4.223 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001296/0.3379, allocations: 27.97 kB / 0.9546 GB, free: 4.195 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001157/0.338, allocations: 31.95 kB / 0.9547 GB, free: 4.164 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002728/0.3383, allocations: 68.8 kB / 0.9547 GB, free: 4.094 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.397e-06/0.3383, allocations: 3.938 kB / 0.9547 GB, free: 4.09 MB / 0.7325 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002761/0.3386, allocations: 97.53 kB / 0.9548 GB, free: 3.988 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.03e-05/0.3386, allocations: 10.02 kB / 0.9548 GB, free: 3.98 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.322e-06/0.3386, allocations: 4 kB / 0.9548 GB, free: 3.977 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.492e-05/0.3386, allocations: 0 / 0.9548 GB, free: 3.977 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001329/0.3388, allocations: 23.92 kB / 0.9549 GB, free: 3.953 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.781e-06/0.3388, allocations: 0 / 0.9549 GB, free: 3.953 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.096e-05/0.3389, allocations: 11.98 kB / 0.9549 GB, free: 3.941 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.844e-06/0.3389, allocations: 0 / 0.9549 GB, free: 3.941 MB / 0.7325 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 9.33e-05/0.339, allocations: 123.7 kB / 0.955 GB, free: 3.812 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.258e-05/0.339, allocations: 0 / 0.955 GB, free: 3.812 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.679e-05/0.339, allocations: 7.891 kB / 0.955 GB, free: 3.801 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-06/0.339, allocations: 4 kB / 0.955 GB, free: 3.797 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.3391, allocations: 4 kB / 0.955 GB, free: 3.793 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.474e-06/0.3391, allocations: 0 / 0.955 GB, free: 3.793 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001792/0.3393, allocations: 173.5 kB / 0.9552 GB, free: 3.574 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.3393, allocations: 0 / 0.9552 GB, free: 3.574 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.943e-05/0.3394, allocations: 15.97 kB / 0.9552 GB, free: 3.559 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.894e-06/0.3394, allocations: 0 / 0.9552 GB, free: 3.559 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.488e-06/0.3394, allocations: 4 kB / 0.9552 GB, free: 3.555 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.3394, allocations: 0 / 0.9552 GB, free: 3.555 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.3394, allocations: 0 / 0.9552 GB, free: 3.555 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004499/0.3398, allocations: 199.7 kB / 0.9554 GB, free: 3.344 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.571e-05/0.3399, allocations: 81.09 kB / 0.9555 GB, free: 3.246 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.568e-05/0.3399, allocations: 3.984 kB / 0.9555 GB, free: 3.242 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.805e-05/0.34, allocations: 15.97 kB / 0.9555 GB, free: 3.227 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001616/0.3402, allocations: 12 kB / 0.9555 GB, free: 3.215 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.967e-06/0.3402, allocations: 3.938 kB / 0.9555 GB, free: 3.211 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 4.494e-05/0.3403, allocations: 83.27 kB / 0.9556 GB, free: 3.129 MB / 0.7325 GB Notification: Performance of sort global known variables: time 9e-08/0.3403, allocations: 0 / 0.9556 GB, free: 3.129 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002166/0.3405, allocations: 12 kB / 0.9556 GB, free: 3.117 MB / 0.7325 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.0001768/0.3407, allocations: 99.25 kB / 0.9557 GB, free: 3.012 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0003411/0.341, allocations: 67.92 kB / 0.9557 GB, free: 2.945 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.003e-06/0.341, allocations: 4 kB / 0.9557 GB, free: 2.941 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001338/0.3412, allocations: 39.89 kB / 0.9558 GB, free: 2.902 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003371/0.3415, allocations: 12.8 kB / 0.9558 GB, free: 2.891 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003683/0.3419, allocations: 125.4 kB / 0.9559 GB, free: 2.746 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003574/0.3423, allocations: 0.6844 MB / 0.9566 GB, free: 2.035 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 3.189e-05/0.3423, allocations: 3.984 kB / 0.9566 GB, free: 2.031 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.59e-05/0.3424, allocations: 11.44 kB / 0.9566 GB, free: 2.02 MB / 0.7325 GB Notification: Performance of SimCode: time 2.31e-07/0.3424, allocations: 0 / 0.9566 GB, free: 2.02 MB / 0.7325 GB Notification: Performance of Templates: time 0.002911/0.3453, allocations: 0.682 MB / 0.9573 GB, free: 1.348 MB / 0.7325 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 -s cvode -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