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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.0009062/0.0009063, allocations: 99.42 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001014/0.001014, allocations: 187.2 kB / 16.92 MB, free: 6.75 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.385/1.385, allocations: 223.3 MB / 241 MB, free: 5.246 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.719/2.719, allocations: 462.6 MB / 0.737 GB, free: 15.58 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003358/0.0003358, allocations: 9.734 kB / 0.9034 GB, free: 36.48 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3089/0.3093, allocations: 159.6 MB / 1.059 GB, free: 4.988 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothHeaviside): time 0.00178/0.3111, allocations: 1.16 MB / 1.06 GB, free: 3.816 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0009115/0.3121, allocations: 474.8 kB / 1.061 GB, free: 3.348 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.402e-05/0.3121, allocations: 0 / 1.061 GB, free: 3.348 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.81e-05/0.3121, allocations: 0 / 1.061 GB, free: 3.348 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 7.325e-05/0.3122, allocations: 7.938 kB / 1.061 GB, free: 3.34 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001956/0.3124, allocations: 15.98 kB / 1.061 GB, free: 3.324 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 6.264e-05/0.3125, allocations: 23.92 kB / 1.061 GB, free: 3.301 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 9.097e-05/0.3126, allocations: 7.984 kB / 1.061 GB, free: 3.293 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 7.347e-05/0.3127, allocations: 15.88 kB / 1.061 GB, free: 3.277 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 4.575e-05/0.3127, allocations: 7.984 kB / 1.061 GB, free: 3.27 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.143e-05/0.3128, allocations: 0 / 1.061 GB, free: 3.27 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 7.193e-05/0.3128, allocations: 19.98 kB / 1.061 GB, free: 3.25 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.206e-05/0.3129, allocations: 3.938 kB / 1.061 GB, free: 3.246 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.209e-05/0.3129, allocations: 41.62 kB / 1.061 GB, free: 3.199 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 8.581e-05/0.313, allocations: 23.95 kB / 1.061 GB, free: 3.176 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.313, allocations: 4 kB / 1.061 GB, free: 3.172 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.643e-06/0.313, allocations: 0 / 1.061 GB, free: 3.172 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.578e-06/0.313, allocations: 0 / 1.061 GB, free: 3.172 MB / 0.8106 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.0004472/0.3135, allocations: 339.8 kB / 1.061 GB, free: 2.793 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.157e-05/0.3135, allocations: 11.97 kB / 1.061 GB, free: 2.781 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.381e-05/0.3136, allocations: 12.84 kB / 1.061 GB, free: 2.77 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001195/0.3137, allocations: 160.4 kB / 1.062 GB, free: 2.574 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.738e-06/0.3137, allocations: 384 / 1.062 GB, free: 2.574 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.299e-05/0.3137, allocations: 4.375 kB / 1.062 GB, free: 2.57 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001924/0.3139, allocations: 61.92 kB / 1.062 GB, free: 2.504 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.041e-06/0.3139, allocations: 0 / 1.062 GB, free: 2.504 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.977e-06/0.3139, allocations: 0 / 1.062 GB, free: 2.504 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.899e-06/0.314, allocations: 0 / 1.062 GB, free: 2.504 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001772/0.3141, allocations: 47.95 kB / 1.062 GB, free: 2.457 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003288/0.3145, allocations: 244.9 kB / 1.062 GB, free: 2.168 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001433/0.3146, allocations: 54.48 kB / 1.062 GB, free: 2.105 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.553e-05/0.3147, allocations: 32.84 kB / 1.062 GB, free: 2.07 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001387/0.3149, allocations: 81.09 kB / 1.062 GB, free: 1.973 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.989e-05/0.3149, allocations: 42.55 kB / 1.062 GB, free: 1.922 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 1.553e-06/0.3149, allocations: 0 / 1.062 GB, free: 1.922 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.0003863/0.3153, allocations: 93.56 kB / 1.062 GB, free: 1.824 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.051e-05/0.3154, allocations: 59.52 kB / 1.062 GB, free: 1.754 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.945e-05/0.3155, allocations: 101.9 kB / 1.062 GB, free: 1.645 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.572e-05/0.3155, allocations: 25.7 kB / 1.062 GB, free: 1.613 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.673e-05/0.3155, allocations: 88.08 kB / 1.062 GB, free: 1.523 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.98e-05/0.3156, allocations: 7.906 kB / 1.062 GB, free: 1.516 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.491e-05/0.3156, allocations: 13.7 kB / 1.062 GB, free: 1.496 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001306/0.3157, allocations: 310.8 kB / 1.063 GB, free: 1.184 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.436e-05/0.3158, allocations: 31.92 kB / 1.063 GB, free: 1.152 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.874e-05/0.3159, allocations: 15.98 kB / 1.063 GB, free: 1.137 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001707/0.3161, allocations: 60.81 kB / 1.063 GB, free: 1.074 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.3161, allocations: 0 / 1.063 GB, free: 1.074 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002078/0.3163, allocations: 73.67 kB / 1.063 GB, free: 0.9961 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.675e-05/0.3163, allocations: 12.02 kB / 1.063 GB, free: 0.9844 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.3164, allocations: 0 / 1.063 GB, free: 0.9844 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.072e-05/0.3164, allocations: 0 / 1.063 GB, free: 0.9844 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.905e-05/0.3165, allocations: 11.94 kB / 1.063 GB, free: 0.9727 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.859e-06/0.3165, allocations: 0 / 1.063 GB, free: 0.9727 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.352e-05/0.3165, allocations: 15.92 kB / 1.063 GB, free: 0.957 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.791e-06/0.3165, allocations: 0 / 1.063 GB, free: 0.957 MB / 0.8106 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 7.445e-05/0.3166, allocations: 117.8 kB / 1.063 GB, free: 0.832 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.307e-05/0.3167, allocations: 0 / 1.063 GB, free: 0.832 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002454/0.3169, allocations: 84.77 kB / 1.063 GB, free: 0.7461 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.477e-06/0.3169, allocations: 0 / 1.063 GB, free: 0.7461 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.3169, allocations: 0 / 1.063 GB, free: 0.7461 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.785e-06/0.3169, allocations: 4.031 kB / 1.063 GB, free: 0.7422 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001621/0.3171, allocations: 161.6 kB / 1.063 GB, free: 0.5352 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/0.3171, allocations: 256 / 1.063 GB, free: 0.5352 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.474e-05/0.3172, allocations: 15.98 kB / 1.063 GB, free: 0.5195 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.856e-06/0.3172, allocations: 0 / 1.063 GB, free: 0.5195 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.666e-06/0.3172, allocations: 0 / 1.063 GB, free: 0.5195 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.3172, allocations: 3.938 kB / 1.063 GB, free: 0.5156 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.3172, allocations: 0 / 1.063 GB, free: 0.5156 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002554/0.3175, allocations: 183.4 kB / 1.064 GB, free: 328 kB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.489e-05/0.3175, allocations: 77.11 kB / 1.064 GB, free: 232 kB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.25e-05/0.3175, allocations: 0 / 1.064 GB, free: 232 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.174e-05/0.3176, allocations: 16.02 kB / 1.064 GB, free: 216 kB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.891e-05/0.3177, allocations: 4 kB / 1.064 GB, free: 212 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.467e-06/0.3177, allocations: 3.938 kB / 1.064 GB, free: 208 kB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.308e-05/0.3177, allocations: 83.27 kB / 1.064 GB, free: 124 kB / 0.8106 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3177, allocations: 0 / 1.064 GB, free: 124 kB / 0.8106 GB Notification: Performance of remove unused functions: time 0.000226/0.318, allocations: 8 kB / 1.064 GB, free: 116 kB / 0.8106 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.0001529/0.3181, allocations: 95.25 kB / 1.064 GB, free: 8 kB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002514/0.3184, allocations: 63.88 kB / 1.064 GB, free: 15.94 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.3184, allocations: 0 / 1.064 GB, free: 15.94 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 9.055e-05/0.3185, allocations: 19.98 kB / 1.064 GB, free: 15.92 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002953/0.3188, allocations: 13.44 kB / 1.064 GB, free: 15.91 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003153/0.3191, allocations: 138.4 kB / 1.064 GB, free: 15.74 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002466/0.3194, allocations: 0.677 MB / 1.065 GB, free: 15.04 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.45e-05/0.3194, allocations: 11.44 kB / 1.065 GB, free: 15.03 MB / 0.8262 GB Notification: Performance of SimCode: time 1.9e-07/0.3194, allocations: 0 / 1.065 GB, free: 15.03 MB / 0.8262 GB Notification: Performance of Templates: time 0.002216/0.3216, allocations: 0.6382 MB / 1.065 GB, free: 14.39 MB / 0.8262 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches