Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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.Utilities.Math.Examples.SmoothHeaviside,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoothHeaviside.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside") translateModel(Buildings.Utilities.Math.Examples.SmoothHeaviside,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoothHeaviside.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005474/0.005474, allocations: 102 kB / 15.73 MB, free: 6.039 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.001166/0.001166, allocations: 194.5 kB / 16.67 MB, free: 5.961 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.415/1.415, allocations: 222.9 MB / 240.4 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.521/2.521, allocations: 461.9 MB / 0.7348 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001265/0.001265, allocations: 72.11 kB / 1.054 GB, free: 7.656 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.888/0.8893, allocations: 157.4 MB / 1.208 GB, free: 13.73 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothHeaviside): time 0.002594/0.8919, allocations: 1.441 MB / 1.209 GB, free: 12.29 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0007956/0.8927, allocations: 470.9 kB / 1.21 GB, free: 11.82 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.693e-05/0.8928, allocations: 0 / 1.21 GB, free: 11.82 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 2.459e-05/0.8928, allocations: 0 / 1.21 GB, free: 11.82 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 5.994e-05/0.8929, allocations: 7.922 kB / 1.21 GB, free: 11.82 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001988/0.8931, allocations: 23.92 kB / 1.21 GB, free: 11.79 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 6.778e-05/0.8932, allocations: 23.98 kB / 1.21 GB, free: 11.77 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 8.337e-05/0.8933, allocations: 3.984 kB / 1.21 GB, free: 11.77 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 5.801e-05/0.8933, allocations: 11.94 kB / 1.21 GB, free: 11.75 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 4.274e-05/0.8934, allocations: 15.92 kB / 1.21 GB, free: 11.74 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.359e-05/0.8934, allocations: 8 kB / 1.21 GB, free: 11.73 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 7.174e-05/0.8935, allocations: 19.97 kB / 1.21 GB, free: 11.71 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 1.189e-05/0.8935, allocations: 4 kB / 1.21 GB, free: 11.71 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 2.393e-05/0.8935, allocations: 11.92 kB / 1.21 GB, free: 11.7 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 9.732e-05/0.8936, allocations: 27.91 kB / 1.21 GB, free: 11.67 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.8936, allocations: 0 / 1.21 GB, free: 11.67 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.162e-06/0.8936, allocations: 3.938 kB / 1.21 GB, free: 11.66 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 8.837e-06/0.8936, allocations: 4 kB / 1.21 GB, free: 11.66 MB / 0.9356 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.0004267/0.8941, allocations: 341.3 kB / 1.21 GB, free: 11.28 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.623e-05/0.8941, allocations: 16.03 kB / 1.21 GB, free: 11.27 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.909e-05/0.8942, allocations: 0.9375 kB / 1.21 GB, free: 11.27 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001095/0.8943, allocations: 180.2 kB / 1.21 GB, free: 11.05 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.115e-05/0.8943, allocations: 4.375 kB / 1.21 GB, free: 11.05 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.082e-05/0.8943, allocations: 4.375 kB / 1.21 GB, free: 11.04 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001642/0.8945, allocations: 46 kB / 1.21 GB, free: 10.99 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.778e-06/0.8945, allocations: 3.984 kB / 1.21 GB, free: 10.99 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.04e-05/0.8945, allocations: 4 kB / 1.21 GB, free: 10.98 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.508e-06/0.8945, allocations: 3.938 kB / 1.21 GB, free: 10.98 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001608/0.8947, allocations: 35.97 kB / 1.21 GB, free: 10.95 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002969/0.895, allocations: 252.8 kB / 1.211 GB, free: 10.65 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001167/0.8951, allocations: 38.5 kB / 1.211 GB, free: 10.6 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.57e-05/0.8952, allocations: 24.91 kB / 1.211 GB, free: 10.57 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001193/0.8953, allocations: 85.09 kB / 1.211 GB, free: 10.47 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001017/0.8954, allocations: 34.56 kB / 1.211 GB, free: 10.43 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=2): time 3.777e-06/0.8955, allocations: 3.984 kB / 1.211 GB, free: 10.43 MB / 0.9356 GB Notification: Performance of matching and sorting (n=2): time 0.0003497/0.8958, allocations: 85.58 kB / 1.211 GB, free: 10.34 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.333e-05/0.8959, allocations: 51.41 kB / 1.211 GB, free: 10.27 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.918e-05/0.8959, allocations: 106 kB / 1.211 GB, free: 10.16 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.29e-05/0.896, allocations: 25.7 kB / 1.211 GB, free: 10.13 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 3.934e-05/0.896, allocations: 84.14 kB / 1.211 GB, free: 10.04 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 1.798e-05/0.896, allocations: 3.906 kB / 1.211 GB, free: 10.04 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.368e-05/0.8961, allocations: 17.72 kB / 1.211 GB, free: 10.02 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001112/0.8962, allocations: 310.8 kB / 1.211 GB, free: 9.703 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.472e-05/0.8963, allocations: 19.97 kB / 1.211 GB, free: 9.684 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.337e-05/0.8964, allocations: 19.98 kB / 1.211 GB, free: 9.664 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001491/0.8965, allocations: 36.77 kB / 1.211 GB, free: 9.625 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.8965, allocations: 0 / 1.211 GB, free: 9.625 MB / 0.9356 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002007/0.8967, allocations: 73.59 kB / 1.212 GB, free: 9.547 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.324e-05/0.8967, allocations: 4 kB / 1.212 GB, free: 9.543 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.709e-06/0.8968, allocations: 8.094 kB / 1.212 GB, free: 9.535 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.102e-05/0.8968, allocations: 0 / 1.212 GB, free: 9.535 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.663e-05/0.8969, allocations: 7.984 kB / 1.212 GB, free: 9.527 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.548e-06/0.8969, allocations: 0 / 1.212 GB, free: 9.527 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.451e-05/0.8969, allocations: 4 kB / 1.212 GB, free: 9.523 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.009e-05/0.8969, allocations: 3.984 kB / 1.212 GB, free: 9.52 MB / 0.9356 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.186e-05/0.897, allocations: 113.8 kB / 1.212 GB, free: 9.398 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.526e-05/0.897, allocations: 3.906 kB / 1.212 GB, free: 9.395 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000224/0.8973, allocations: 80.72 kB / 1.212 GB, free: 9.309 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.833e-06/0.8973, allocations: 0 / 1.212 GB, free: 9.309 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.417e-06/0.8973, allocations: 0 / 1.212 GB, free: 9.309 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.504e-06/0.8973, allocations: 0 / 1.212 GB, free: 9.309 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001448/0.8974, allocations: 161.6 kB / 1.212 GB, free: 9.102 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.8974, allocations: 8.188 kB / 1.212 GB, free: 9.094 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.512e-05/0.8975, allocations: 4 kB / 1.212 GB, free: 9.09 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.647e-06/0.8975, allocations: 4 kB / 1.212 GB, free: 9.086 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.666e-06/0.8975, allocations: 8.016 kB / 1.212 GB, free: 9.078 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.8975, allocations: 0 / 1.212 GB, free: 9.078 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.91e-07/0.8975, allocations: 4 kB / 1.212 GB, free: 9.074 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000228/0.8978, allocations: 163.5 kB / 1.212 GB, free: 8.898 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 3.438e-05/0.8978, allocations: 77.11 kB / 1.212 GB, free: 8.805 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.228e-05/0.8978, allocations: 0 / 1.212 GB, free: 8.805 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.437e-05/0.8979, allocations: 11.97 kB / 1.212 GB, free: 8.793 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.23e-05/0.898, allocations: 7.922 kB / 1.212 GB, free: 8.785 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.767e-06/0.898, allocations: 0 / 1.212 GB, free: 8.785 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 3.614e-05/0.898, allocations: 83.28 kB / 1.212 GB, free: 8.703 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.31e-07/0.898, allocations: 4 kB / 1.212 GB, free: 8.699 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002242/0.8983, allocations: 8 kB / 1.212 GB, free: 8.691 MB / 0.9356 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 (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.000147/0.8984, allocations: 103.2 kB / 1.212 GB, free: 8.578 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0002251/0.8986, allocations: 35.97 kB / 1.212 GB, free: 8.543 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.8987, allocations: 0 / 1.212 GB, free: 8.543 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 8.755e-05/0.8987, allocations: 19.98 kB / 1.212 GB, free: 8.523 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002932/0.899, allocations: 11.92 kB / 1.212 GB, free: 8.512 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003145/0.8994, allocations: 121.3 kB / 1.213 GB, free: 8.363 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000239/0.8996, allocations: 0.6769 MB / 1.213 GB, free: 7.66 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 2.904e-05/0.8997, allocations: 7.938 kB / 1.213 GB, free: 7.652 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.134e-05/0.8997, allocations: 7.438 kB / 1.213 GB, free: 7.645 MB / 0.9356 GB Notification: Performance of SimCode: time 2.41e-07/0.8997, allocations: 4 kB / 1.213 GB, free: 7.641 MB / 0.9356 GB Notification: Performance of Templates: time 0.002911/0.9026, allocations: 0.5668 MB / 1.214 GB, free: 7.078 MB / 0.9356 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_SmoothHeaviside.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches