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.001391/0.001391, allocations: 101.5 kB / 16.27 MB, free: 5.934 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.001455/0.001455, allocations: 191.3 kB / 17.2 MB, free: 5.574 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.397/1.397, allocations: 222.9 MB / 240.9 MB, free: 15.2 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.26/2.26, allocations: 390.2 MB / 0.6653 GB, free: 0.707 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.00134/0.00134, allocations: 66.11 kB / 0.8132 GB, free: 33 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2693/0.2706, allocations: 140.4 MB / 0.9503 GB, free: 8.84 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Subtract): time 0.002005/0.2727, allocations: 0.707 MB / 0.951 GB, free: 8.129 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0008589/0.2735, allocations: 0.8001 MB / 0.9518 GB, free: 7.316 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.865e-05/0.2736, allocations: 8 kB / 0.9518 GB, free: 7.309 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 3.043e-05/0.2736, allocations: 3.938 kB / 0.9518 GB, free: 7.305 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 5.895e-05/0.2737, allocations: 3.938 kB / 0.9518 GB, free: 7.301 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 5.494e-05/0.2738, allocations: 11.98 kB / 0.9518 GB, free: 7.289 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 7.568e-05/0.2739, allocations: 43.91 kB / 0.9518 GB, free: 7.246 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 9.763e-05/0.274, allocations: 8 kB / 0.9518 GB, free: 7.238 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 7.336e-05/0.2741, allocations: 23.84 kB / 0.9519 GB, free: 7.215 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 4.344e-05/0.2741, allocations: 23.92 kB / 0.9519 GB, free: 7.191 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.668e-05/0.2741, allocations: 8 kB / 0.9519 GB, free: 7.184 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 8.496e-06/0.2741, allocations: 0 / 0.9519 GB, free: 7.184 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 1.905e-05/0.2742, allocations: 15.92 kB / 0.9519 GB, free: 7.168 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 2.701e-05/0.2742, allocations: 11.94 kB / 0.9519 GB, free: 7.156 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 7.885e-05/0.2743, allocations: 35.86 kB / 0.9519 GB, free: 7.121 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.601e-06/0.2743, allocations: 8 kB / 0.952 GB, free: 7.113 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.372e-06/0.2743, allocations: 0 / 0.952 GB, free: 7.113 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 5.39e-06/0.2743, allocations: 0 / 0.952 GB, free: 7.113 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.0005137/0.2748, allocations: 363.6 kB / 0.9523 GB, free: 6.707 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.785e-05/0.2749, allocations: 8.031 kB / 0.9523 GB, free: 6.699 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.803e-05/0.2749, allocations: 4.938 kB / 0.9523 GB, free: 6.695 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001159/0.275, allocations: 176.2 kB / 0.9525 GB, free: 6.484 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.019e-05/0.275, allocations: 4.312 kB / 0.9525 GB, free: 6.48 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.176e-05/0.2751, allocations: 4.375 kB / 0.9525 GB, free: 6.477 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002425/0.2753, allocations: 68.33 kB / 0.9526 GB, free: 6.406 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.059e-05/0.2753, allocations: 4.125 kB / 0.9526 GB, free: 6.402 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.205e-05/0.2753, allocations: 11.88 kB / 0.9526 GB, free: 6.391 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.32e-06/0.2753, allocations: 4 kB / 0.9526 GB, free: 6.387 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000276/0.2756, allocations: 59.92 kB / 0.9526 GB, free: 6.328 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003415/0.276, allocations: 265 kB / 0.9529 GB, free: 6.02 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002004/0.2762, allocations: 62.48 kB / 0.9529 GB, free: 5.949 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001585/0.2764, allocations: 40.91 kB / 0.953 GB, free: 5.906 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.227e-05/0.2764, allocations: 3.938 kB / 0.953 GB, free: 5.902 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.344e-05/0.2764, allocations: 34.56 kB / 0.953 GB, free: 5.859 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=3): time 1.192e-06/0.2764, allocations: 0 / 0.953 GB, free: 5.859 MB / 0.7325 GB Notification: Performance of matching and sorting (n=3): time 0.0005435/0.277, allocations: 133.7 kB / 0.9531 GB, free: 5.723 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.266e-05/0.277, allocations: 51.41 kB / 0.9532 GB, free: 5.66 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.967e-05/0.2771, allocations: 109.8 kB / 0.9533 GB, free: 5.543 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.369e-05/0.2771, allocations: 25.7 kB / 0.9533 GB, free: 5.512 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 3.956e-05/0.2772, allocations: 88.14 kB / 0.9534 GB, free: 5.422 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 1.743e-05/0.2772, allocations: 7.906 kB / 0.9534 GB, free: 5.414 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.57e-05/0.2772, allocations: 13.72 kB / 0.9534 GB, free: 5.395 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001087/0.2773, allocations: 318.8 kB / 0.9537 GB, free: 5.074 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001485/0.2775, allocations: 31.91 kB / 0.9538 GB, free: 5.043 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001368/0.2776, allocations: 39.94 kB / 0.9538 GB, free: 5.004 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002634/0.2779, allocations: 64.8 kB / 0.9539 GB, free: 4.938 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.2779, allocations: 3.938 kB / 0.9539 GB, free: 4.934 MB / 0.7325 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003224/0.2783, allocations: 101.5 kB / 0.954 GB, free: 4.828 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.362e-05/0.2783, allocations: 8 kB / 0.954 GB, free: 4.82 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/0.2783, allocations: 4 kB / 0.954 GB, free: 4.816 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.171e-05/0.2783, allocations: 0 / 0.954 GB, free: 4.816 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001228/0.2784, allocations: 11.98 kB / 0.954 GB, free: 4.805 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.669e-06/0.2784, allocations: 320 / 0.954 GB, free: 4.805 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.654e-05/0.2785, allocations: 11.98 kB / 0.954 GB, free: 4.793 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.583e-06/0.2785, allocations: 3.938 kB / 0.954 GB, free: 4.789 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 7.349e-05/0.2786, allocations: 123.8 kB / 0.9541 GB, free: 4.66 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.544e-05/0.2786, allocations: 3.984 kB / 0.9541 GB, free: 4.656 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.237e-05/0.2787, allocations: 15.91 kB / 0.9541 GB, free: 4.637 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.794e-06/0.2787, allocations: 3.938 kB / 0.9541 GB, free: 4.633 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.436e-06/0.2787, allocations: 0 / 0.9541 GB, free: 4.633 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.665e-06/0.2787, allocations: 0 / 0.9541 GB, free: 4.633 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001513/0.2789, allocations: 169.5 kB / 0.9543 GB, free: 4.418 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.143e-06/0.2789, allocations: 0 / 0.9543 GB, free: 4.418 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001058/0.279, allocations: 23.97 kB / 0.9543 GB, free: 4.395 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.279, allocations: 0 / 0.9543 GB, free: 4.395 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.104e-06/0.279, allocations: 4 kB / 0.9543 GB, free: 4.391 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.153e-06/0.279, allocations: 0 / 0.9543 GB, free: 4.391 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.279, allocations: 0 / 0.9543 GB, free: 4.391 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003515/0.2794, allocations: 191.4 kB / 0.9545 GB, free: 4.188 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.357e-05/0.2794, allocations: 88.98 kB / 0.9546 GB, free: 4.082 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.512e-05/0.2794, allocations: 7.984 kB / 0.9546 GB, free: 4.074 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001051/0.2795, allocations: 11.98 kB / 0.9546 GB, free: 4.062 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.173e-05/0.2796, allocations: 4 kB / 0.9546 GB, free: 4.059 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.427e-06/0.2796, allocations: 0 / 0.9546 GB, free: 4.059 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 4.421e-05/0.2796, allocations: 95.25 kB / 0.9547 GB, free: 3.965 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2797, allocations: 0 / 0.9547 GB, free: 3.965 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002146/0.2799, allocations: 4 kB / 0.9547 GB, free: 3.961 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.0001406/0.28, allocations: 103.2 kB / 0.9548 GB, free: 3.852 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0003329/0.2804, allocations: 71.92 kB / 0.9549 GB, free: 3.781 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.2804, allocations: 0 / 0.9549 GB, free: 3.781 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001503/0.2805, allocations: 39.89 kB / 0.9549 GB, free: 3.742 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002913/0.2808, allocations: 16.97 kB / 0.9549 GB, free: 3.727 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003279/0.2812, allocations: 155 kB / 0.9551 GB, free: 3.547 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000248/0.2814, allocations: 0.6883 MB / 0.9558 GB, free: 2.832 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.33e-05/0.2815, allocations: 7.438 kB / 0.9558 GB, free: 2.824 MB / 0.7325 GB Notification: Performance of SimCode: time 3.01e-07/0.2815, allocations: 0 / 0.9558 GB, free: 2.824 MB / 0.7325 GB Notification: Performance of Templates: time 0.00191/0.2834, allocations: 0.7416 MB / 0.9565 GB, free: 2.09 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 -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