Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Sqrt.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.Sqrt,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sqrt1.u|sqrt1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Sqrt") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.Sqrt,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sqrt1.u|sqrt1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Sqrt") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001285/0.001285, allocations: 92.31 kB / 15.06 MB, free: 1.098 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.001736/0.001736, allocations: 172.7 kB / 15.95 MB, free: 208 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.575/1.575, allocations: 223.3 MB / 240 MB, free: 5.227 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.527/2.527, allocations: 390.9 MB / 0.666 GB, free: 2.449 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003888/0.0003889, allocations: 12 kB / 0.8154 GB, free: 13.64 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8334/0.8338, allocations: 142.4 MB / 0.9545 GB, free: 7.793 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Sqrt): time 0.0008696/0.8348, allocations: 391 kB / 0.9548 GB, free: 7.5 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0008586/0.8356, allocations: 0.7969 MB / 0.9556 GB, free: 6.848 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.083e-05/0.8357, allocations: 1.469 kB / 0.9556 GB, free: 6.848 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.768e-05/0.8357, allocations: 0 / 0.9556 GB, free: 6.848 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.062e-05/0.8358, allocations: 7.984 kB / 0.9556 GB, free: 6.84 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001391/0.8359, allocations: 2.781 kB / 0.9556 GB, free: 6.84 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.96e-05/0.836, allocations: 22.98 kB / 0.9556 GB, free: 6.824 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.608e-05/0.8361, allocations: 6.891 kB / 0.9556 GB, free: 6.82 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 5.895e-05/0.8362, allocations: 10.78 kB / 0.9557 GB, free: 6.812 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.083e-05/0.8362, allocations: 6.953 kB / 0.9557 GB, free: 6.809 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.387e-05/0.8362, allocations: 1.312 kB / 0.9557 GB, free: 6.809 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.031e-05/0.8362, allocations: 1.406 kB / 0.9557 GB, free: 6.809 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.154e-05/0.8363, allocations: 3.938 kB / 0.9557 GB, free: 6.805 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.65e-05/0.8363, allocations: 35.11 kB / 0.9557 GB, free: 6.766 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 6.097e-05/0.8364, allocations: 14.64 kB / 0.9557 GB, free: 6.754 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/0.8364, allocations: 0.9375 kB / 0.9557 GB, free: 6.754 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.934e-06/0.8364, allocations: 0 / 0.9557 GB, free: 6.754 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.118e-06/0.8364, allocations: 0 / 0.9557 GB, free: 6.754 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003768/0.8368, allocations: 342 kB / 0.956 GB, free: 6.391 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.426e-05/0.8368, allocations: 8.844 kB / 0.9561 GB, free: 6.391 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.998e-05/0.8369, allocations: 10 kB / 0.9561 GB, free: 6.383 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.126e-05/0.8369, allocations: 164.2 kB / 0.9562 GB, free: 6.184 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.462e-05/0.837, allocations: 0.7812 kB / 0.9562 GB, free: 6.184 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.235e-05/0.837, allocations: 1.094 kB / 0.9562 GB, free: 6.184 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000175/0.8372, allocations: 54.02 kB / 0.9563 GB, free: 6.141 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.016e-05/0.8372, allocations: 0 / 0.9563 GB, free: 6.141 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.012e-05/0.8372, allocations: 7.875 kB / 0.9563 GB, free: 6.133 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.188e-06/0.8372, allocations: 0.9375 kB / 0.9563 GB, free: 6.133 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001635/0.8374, allocations: 48.17 kB / 0.9563 GB, free: 6.113 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003311/0.8377, allocations: 244.9 kB / 0.9566 GB, free: 5.832 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001181/0.8379, allocations: 43.53 kB / 0.9566 GB, free: 5.797 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.043e-05/0.8379, allocations: 24 kB / 0.9566 GB, free: 5.785 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.375e-05/0.838, allocations: 9.359 kB / 0.9566 GB, free: 5.777 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.096e-05/0.838, allocations: 42.5 kB / 0.9567 GB, free: 5.727 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 1.032e-06/0.838, allocations: 0 / 0.9567 GB, free: 5.727 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0003497/0.8384, allocations: 98.94 kB / 0.9568 GB, free: 5.668 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.053e-05/0.8384, allocations: 60.48 kB / 0.9568 GB, free: 5.598 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.119e-05/0.8385, allocations: 99.02 kB / 0.9569 GB, free: 5.496 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.077e-05/0.8385, allocations: 25.7 kB / 0.9569 GB, free: 5.465 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.812e-05/0.8385, allocations: 85.14 kB / 0.957 GB, free: 5.379 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.93e-05/0.8386, allocations: 12.8 kB / 0.957 GB, free: 5.367 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.276e-06/0.8386, allocations: 0 / 0.957 GB, free: 5.367 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.673e-05/0.8386, allocations: 316.9 kB / 0.9573 GB, free: 5.051 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.5e-05/0.8387, allocations: 25.67 kB / 0.9574 GB, free: 5.039 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.64e-05/0.8388, allocations: 21.98 kB / 0.9574 GB, free: 5.031 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.528e-05/0.8389, allocations: 22.58 kB / 0.9574 GB, free: 5.023 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.8389, allocations: 64 / 0.9574 GB, free: 5.023 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001692/0.839, allocations: 78.09 kB / 0.9575 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.428e-05/0.8391, allocations: 4.531 kB / 0.9575 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.018e-06/0.8391, allocations: 1.094 kB / 0.9575 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.443e-05/0.8391, allocations: 0 / 0.9575 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.335e-05/0.8392, allocations: 20.56 kB / 0.9575 GB, free: 4.961 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.42e-06/0.8392, allocations: 0 / 0.9575 GB, free: 4.961 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.529e-05/0.8393, allocations: 10.52 kB / 0.9575 GB, free: 4.957 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.802e-06/0.8393, allocations: 1.094 kB / 0.9575 GB, free: 4.957 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 (2): * Single equations (assignments): 2 * 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 5.466e-05/0.8393, allocations: 107.1 kB / 0.9576 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.342e-05/0.8394, allocations: 5.031 kB / 0.9576 GB, free: 4.84 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.366e-05/0.8394, allocations: 4.125 kB / 0.9576 GB, free: 4.836 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-06/0.8394, allocations: 5.188 kB / 0.9576 GB, free: 4.832 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/0.8394, allocations: 3.953 kB / 0.9576 GB, free: 4.828 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.8394, allocations: 5.188 kB / 0.9576 GB, free: 4.824 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001133/0.8395, allocations: 156.9 kB / 0.9578 GB, free: 4.625 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.8395, allocations: 5.031 kB / 0.9578 GB, free: 4.621 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.664e-05/0.8396, allocations: 12.03 kB / 0.9578 GB, free: 4.617 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.438e-06/0.8396, allocations: 5.109 kB / 0.9578 GB, free: 4.613 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.665e-06/0.8396, allocations: 0 / 0.9578 GB, free: 4.613 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.8396, allocations: 0 / 0.9578 GB, free: 4.613 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.8396, allocations: 1.125 kB / 0.9578 GB, free: 4.613 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002013/0.8398, allocations: 179.9 kB / 0.958 GB, free: 4.453 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.751e-05/0.8399, allocations: 78.2 kB / 0.9581 GB, free: 4.359 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.333e-05/0.8399, allocations: 5.312 kB / 0.9581 GB, free: 4.355 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.054e-05/0.84, allocations: 5.875 kB / 0.9581 GB, free: 4.355 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.987e-05/0.84, allocations: 5.109 kB / 0.9581 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.486e-06/0.84, allocations: 1.062 kB / 0.9581 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.354e-05/0.84, allocations: 81.91 kB / 0.9582 GB, free: 4.273 MB / 0.7169 GB Notification: Performance of sort global known variables: time 9e-08/0.84, allocations: 1.344 kB / 0.9582 GB, free: 4.273 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002049/0.8403, allocations: 6.766 kB / 0.9582 GB, free: 4.27 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 (2): * Single equations (assignments): 2 * 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.0001278/0.8404, allocations: 108.9 kB / 0.9583 GB, free: 4.172 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001965/0.8406, allocations: 46.89 kB / 0.9583 GB, free: 4.156 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.8406, allocations: 0.9062 kB / 0.9583 GB, free: 4.156 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 7.756e-05/0.8407, allocations: 24.3 kB / 0.9583 GB, free: 4.148 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002739/0.841, allocations: 7.312 kB / 0.9583 GB, free: 4.145 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002498/0.8412, allocations: 103.2 kB / 0.9584 GB, free: 4.027 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001142/0.8413, allocations: 0.6776 MB / 0.9591 GB, free: 3.328 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.147e-05/0.8414, allocations: 0 / 0.9591 GB, free: 3.328 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.086e-05/0.8414, allocations: 13 kB / 0.9591 GB, free: 3.316 MB / 0.7169 GB Notification: Performance of SimCode: time 2.21e-07/0.8414, allocations: 0 / 0.9591 GB, free: 3.316 MB / 0.7169 GB Notification: Performance of Templates: time 0.002527/0.8439, allocations: 361.9 kB / 0.9595 GB, free: 3.129 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Sqrt.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Sqrt.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Sqrt.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Sqrt.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Sqrt.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Sqrt -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Sqrt.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Sqrt_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_Sqrt.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Sqrt.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches