Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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.Utilities.Math.Examples.SmoothHeaviside,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoothHeaviside.y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Examples.SmoothHeaviside") translateModel(Buildings.Utilities.Math.Examples.SmoothHeaviside,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoothHeaviside.y",fileNamePrefix="Buildings_9_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.001151/0.001151, allocations: 102.1 kB / 16.4 MB, free: 6.406 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.001146/0.001146, allocations: 192.2 kB / 17.35 MB, free: 5.695 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.381/1.381, 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.3-maint.9.1.x/package.mo): time 2.321/2.321, allocations: 390.3 MB / 0.6655 GB, free: 0.6172 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001501/0.001501, allocations: 63.91 kB / 0.9515 GB, free: 7.609 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9831/0.9846, allocations: 140.4 MB / 1.089 GB, free: 5.492 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothHeaviside): time 0.003607/0.9883, allocations: 1.439 MB / 1.09 GB, free: 4.492 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0009701/0.9893, allocations: 472.5 kB / 1.09 GB, free: 4.168 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.245e-05/0.9894, allocations: 1.094 kB / 1.09 GB, free: 4.168 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.636e-05/0.9894, allocations: 3.938 kB / 1.09 GB, free: 4.164 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 7.828e-05/0.9895, allocations: 5.688 kB / 1.09 GB, free: 4.16 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002606/0.9898, allocations: 19.08 kB / 1.09 GB, free: 4.152 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 8.716e-05/0.9899, allocations: 29.16 kB / 1.091 GB, free: 4.137 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000108/0.99, allocations: 9.859 kB / 1.091 GB, free: 4.133 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 7.597e-05/0.9901, allocations: 8.031 kB / 1.091 GB, free: 4.129 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 5.572e-05/0.9901, allocations: 22.78 kB / 1.091 GB, free: 4.113 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.459e-05/0.9902, allocations: 2.656 kB / 1.091 GB, free: 4.113 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 8.702e-05/0.9903, allocations: 18.58 kB / 1.091 GB, free: 4.109 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.458e-05/0.9903, allocations: 5.125 kB / 1.091 GB, free: 4.105 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 2.899e-05/0.9903, allocations: 11.81 kB / 1.091 GB, free: 4.098 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001244/0.9904, allocations: 30.16 kB / 1.091 GB, free: 4.086 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.9904, allocations: 0.75 kB / 1.091 GB, free: 4.086 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.713e-06/0.9905, allocations: 1.031 kB / 1.091 GB, free: 4.086 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.232e-06/0.9905, allocations: 0 / 1.091 GB, free: 4.086 MB / 0.8575 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.0004712/0.9909, allocations: 353.8 kB / 1.091 GB, free: 3.719 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.942e-05/0.991, allocations: 9.984 kB / 1.091 GB, free: 3.719 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.882e-05/0.991, allocations: 1.656 kB / 1.091 GB, free: 3.719 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001003/0.9911, allocations: 167.4 kB / 1.091 GB, free: 3.52 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.814e-05/0.9912, allocations: 6.016 kB / 1.091 GB, free: 3.516 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.115e-05/0.9912, allocations: 1.312 kB / 1.091 GB, free: 3.516 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001924/0.9914, allocations: 53.2 kB / 1.091 GB, free: 3.477 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.578e-06/0.9914, allocations: 5 kB / 1.091 GB, free: 3.473 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.177e-05/0.9914, allocations: 0 / 1.091 GB, free: 3.473 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.015e-06/0.9915, allocations: 9.109 kB / 1.091 GB, free: 3.465 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000186/0.9916, allocations: 32.47 kB / 1.091 GB, free: 3.461 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000325/0.992, allocations: 252.1 kB / 1.091 GB, free: 3.184 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001399/0.9921, allocations: 40.88 kB / 1.092 GB, free: 3.152 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.438e-05/0.9922, allocations: 27.95 kB / 1.092 GB, free: 3.137 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001297/0.9924, allocations: 81.89 kB / 1.092 GB, free: 3.043 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.097e-05/0.9924, allocations: 32.27 kB / 1.092 GB, free: 3.004 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=2): time 9.52e-07/0.9924, allocations: 0 / 1.092 GB, free: 3.004 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2): time 0.0003963/0.9928, allocations: 81.08 kB / 1.092 GB, free: 2.965 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.008e-05/0.9928, allocations: 59.47 kB / 1.092 GB, free: 2.895 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.496e-05/0.9929, allocations: 107.1 kB / 1.092 GB, free: 2.789 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 8.365e-06/0.9929, allocations: 27.02 kB / 1.092 GB, free: 2.758 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.244e-05/0.993, allocations: 81.77 kB / 1.092 GB, free: 2.676 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.886e-05/0.993, allocations: 11.53 kB / 1.092 GB, free: 2.668 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.813e-05/0.993, allocations: 12.7 kB / 1.092 GB, free: 2.652 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.3e-05/0.9931, allocations: 312.4 kB / 1.092 GB, free: 2.34 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.515e-05/0.9932, allocations: 22.64 kB / 1.092 GB, free: 2.332 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.755e-05/0.9932, allocations: 14.36 kB / 1.092 GB, free: 2.332 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000152/0.9934, allocations: 45.11 kB / 1.092 GB, free: 2.312 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.9934, allocations: 0 / 1.092 GB, free: 2.312 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001889/0.9936, allocations: 63.61 kB / 1.092 GB, free: 2.277 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.596e-05/0.9936, allocations: 12.34 kB / 1.092 GB, free: 2.273 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.799e-06/0.9936, allocations: 5.844 kB / 1.092 GB, free: 2.27 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.396e-05/0.9937, allocations: 0 / 1.092 GB, free: 2.27 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.879e-05/0.9938, allocations: 8.625 kB / 1.092 GB, free: 2.27 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.562e-06/0.9938, allocations: 0.75 kB / 1.092 GB, free: 2.27 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.697e-05/0.9938, allocations: 6.375 kB / 1.092 GB, free: 2.27 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.972e-06/0.9938, allocations: 1.688 kB / 1.092 GB, free: 2.27 MB / 0.8575 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 5.373e-05/0.9939, allocations: 112.3 kB / 1.093 GB, free: 2.152 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.197e-05/0.9939, allocations: 4 kB / 1.093 GB, free: 2.148 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002332/0.9942, allocations: 80.58 kB / 1.093 GB, free: 2.098 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.455e-06/0.9942, allocations: 0 / 1.093 GB, free: 2.098 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.9942, allocations: 1.094 kB / 1.093 GB, free: 2.098 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.659e-06/0.9942, allocations: 1.047 kB / 1.093 GB, free: 2.098 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001222/0.9943, allocations: 160.6 kB / 1.093 GB, free: 1.902 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/0.9943, allocations: 4.797 kB / 1.093 GB, free: 1.898 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.658e-05/0.9944, allocations: 12.03 kB / 1.093 GB, free: 1.895 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.754e-06/0.9944, allocations: 5.062 kB / 1.093 GB, free: 1.891 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.642e-06/0.9944, allocations: 0.5156 kB / 1.093 GB, free: 1.891 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.9944, allocations: 1.031 kB / 1.093 GB, free: 1.891 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.9944, allocations: 4.641 kB / 1.093 GB, free: 1.887 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002086/0.9946, allocations: 163.6 kB / 1.093 GB, free: 1.746 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.022e-05/0.9947, allocations: 82.83 kB / 1.093 GB, free: 1.648 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.491e-05/0.9947, allocations: 0.7969 kB / 1.093 GB, free: 1.648 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.502e-05/0.9948, allocations: 6.188 kB / 1.093 GB, free: 1.648 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.344e-05/0.9948, allocations: 6.328 kB / 1.093 GB, free: 1.645 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.968e-06/0.9948, allocations: 4.781 kB / 1.093 GB, free: 1.641 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 2.774e-05/0.9948, allocations: 80.59 kB / 1.093 GB, free: 1.566 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.9948, allocations: 0.6875 kB / 1.093 GB, free: 1.566 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002278/0.9951, allocations: 6.453 kB / 1.093 GB, free: 1.566 MB / 0.8575 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.0001549/0.9952, allocations: 103.8 kB / 1.093 GB, free: 1.473 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002175/0.9955, allocations: 43.66 kB / 1.093 GB, free: 1.461 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.9955, allocations: 0 / 1.093 GB, free: 1.461 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 8.769e-05/0.9956, allocations: 16.78 kB / 1.093 GB, free: 1.461 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003064/0.9959, allocations: 16.44 kB / 1.093 GB, free: 1.449 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002623/0.9961, allocations: 140.1 kB / 1.093 GB, free: 1.301 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001006/0.9963, allocations: 0.6764 MB / 1.094 GB, free: 0.6055 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.135e-05/0.9963, allocations: 8.844 kB / 1.094 GB, free: 0.5977 MB / 0.8575 GB Notification: Performance of SimCode: time 4.61e-07/0.9963, allocations: 0 / 1.094 GB, free: 0.5977 MB / 0.8575 GB Notification: Performance of Templates: time 0.002235/0.9985, allocations: 0.6597 MB / 1.095 GB, free: 0.5469 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Examples.SmoothHeaviside.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.SmoothHeaviside.sim & ./Buildings_9_Buildings.Utilities.Math.Examples.SmoothHeaviside -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.SmoothHeaviside_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_SmoothHeaviside.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.SmoothHeaviside.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches