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.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.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.001198/0.001198, allocations: 115.9 kB / 16.37 MB, free: 6.004 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.001168/0.001168, allocations: 192.8 kB / 17.31 MB, free: 5.613 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.202/1.202, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 1.994/1.994, allocations: 390.3 MB / 0.6655 GB, free: 0.6055 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001166/0.001166, allocations: 62.53 kB / 0.814 GB, free: 32.64 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2305/0.2317, allocations: 140.4 MB / 0.9511 GB, free: 8.035 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothHeaviside): time 0.002391/0.2341, allocations: 1.438 MB / 0.9525 GB, free: 6.59 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0007227/0.2349, allocations: 469.9 kB / 0.953 GB, free: 6.125 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.019e-05/0.2349, allocations: 0 / 0.953 GB, free: 6.125 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 2.627e-05/0.2349, allocations: 3.938 kB / 0.953 GB, free: 6.121 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 5.208e-05/0.235, allocations: 7.938 kB / 0.953 GB, free: 6.113 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001797/0.2352, allocations: 11.98 kB / 0.953 GB, free: 6.102 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 6.74e-05/0.2353, allocations: 27.92 kB / 0.953 GB, free: 6.074 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 8.318e-05/0.2354, allocations: 15.92 kB / 0.953 GB, free: 6.059 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 6.445e-05/0.2354, allocations: 19.86 kB / 0.9531 GB, free: 6.039 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 3.553e-05/0.2355, allocations: 4 kB / 0.9531 GB, free: 6.035 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.038e-05/0.2355, allocations: 4 kB / 0.9531 GB, free: 6.031 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 6.789e-05/0.2356, allocations: 23.97 kB / 0.9531 GB, free: 6.008 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 1.255e-05/0.2356, allocations: 11.94 kB / 0.9531 GB, free: 5.996 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 1.893e-05/0.2356, allocations: 3.938 kB / 0.9531 GB, free: 5.992 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 9.359e-05/0.2357, allocations: 35.94 kB / 0.9531 GB, free: 5.957 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.2357, allocations: 0 / 0.9531 GB, free: 5.957 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.253e-06/0.2357, allocations: 3.938 kB / 0.9531 GB, free: 5.953 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 4.248e-06/0.2357, allocations: 0 / 0.9531 GB, free: 5.953 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.000398/0.2361, allocations: 343.4 kB / 0.9535 GB, free: 5.57 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.108e-05/0.2362, allocations: 12.03 kB / 0.9535 GB, free: 5.559 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.858e-05/0.2362, allocations: 4.844 kB / 0.9535 GB, free: 5.555 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001009/0.2363, allocations: 168.3 kB / 0.9536 GB, free: 5.352 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.127e-06/0.2363, allocations: 384 / 0.9536 GB, free: 5.352 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.185e-06/0.2363, allocations: 384 / 0.9536 GB, free: 5.352 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001492/0.2365, allocations: 53.98 kB / 0.9537 GB, free: 5.293 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.472e-06/0.2365, allocations: 4 kB / 0.9537 GB, free: 5.289 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.414e-06/0.2365, allocations: 0 / 0.9537 GB, free: 5.289 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.957e-06/0.2365, allocations: 0 / 0.9537 GB, free: 5.289 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001461/0.2367, allocations: 39.95 kB / 0.9537 GB, free: 5.25 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002788/0.237, allocations: 248.9 kB / 0.954 GB, free: 4.957 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001115/0.2371, allocations: 42.55 kB / 0.954 GB, free: 4.906 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.74e-05/0.2372, allocations: 24.91 kB / 0.954 GB, free: 4.879 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001214/0.2373, allocations: 81.11 kB / 0.9541 GB, free: 4.781 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.849e-05/0.2373, allocations: 34.55 kB / 0.9542 GB, free: 4.738 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=2): time 1.072e-06/0.2373, allocations: 0 / 0.9542 GB, free: 4.738 MB / 0.7325 GB Notification: Performance of matching and sorting (n=2): time 0.0003162/0.2377, allocations: 89.59 kB / 0.9542 GB, free: 4.645 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.88e-05/0.2377, allocations: 55.39 kB / 0.9543 GB, free: 4.578 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.894e-05/0.2378, allocations: 101.9 kB / 0.9544 GB, free: 4.469 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.153e-05/0.2378, allocations: 25.7 kB / 0.9544 GB, free: 4.438 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 3.62e-05/0.2378, allocations: 80.14 kB / 0.9545 GB, free: 4.355 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 1.67e-05/0.2379, allocations: 7.891 kB / 0.9545 GB, free: 4.348 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.145e-05/0.2379, allocations: 17.72 kB / 0.9545 GB, free: 4.324 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001045/0.238, allocations: 310.8 kB / 0.9548 GB, free: 4.012 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.522e-05/0.2381, allocations: 20.02 kB / 0.9548 GB, free: 3.992 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.299e-05/0.2381, allocations: 15.98 kB / 0.9548 GB, free: 3.977 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001288/0.2383, allocations: 44.75 kB / 0.9549 GB, free: 3.93 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.2383, allocations: 0 / 0.9549 GB, free: 3.93 MB / 0.7325 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001656/0.2385, allocations: 69.66 kB / 0.955 GB, free: 3.855 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.42e-05/0.2385, allocations: 8 kB / 0.955 GB, free: 3.848 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.29e-06/0.2385, allocations: 3.938 kB / 0.955 GB, free: 3.844 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.019e-05/0.2385, allocations: 3.938 kB / 0.955 GB, free: 3.84 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.783e-05/0.2386, allocations: 8 kB / 0.955 GB, free: 3.832 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.002e-06/0.2386, allocations: 7.984 kB / 0.955 GB, free: 3.824 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.205e-05/0.2386, allocations: 8.188 kB / 0.955 GB, free: 3.816 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.662e-06/0.2387, allocations: 4 kB / 0.955 GB, free: 3.812 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 (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.426e-05/0.2387, allocations: 113.8 kB / 0.9551 GB, free: 3.691 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.25e-05/0.2388, allocations: 4 kB / 0.9551 GB, free: 3.688 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001972/0.239, allocations: 72.77 kB / 0.9552 GB, free: 3.609 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.865e-06/0.239, allocations: 7.922 kB / 0.9552 GB, free: 3.602 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.456e-06/0.239, allocations: 0 / 0.9552 GB, free: 3.602 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.883e-06/0.239, allocations: 0 / 0.9552 GB, free: 3.602 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000133/0.2391, allocations: 165.6 kB / 0.9553 GB, free: 3.391 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.01e-07/0.2391, allocations: 0 / 0.9553 GB, free: 3.391 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.09e-05/0.2392, allocations: 12.02 kB / 0.9554 GB, free: 3.379 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.452e-06/0.2392, allocations: 0 / 0.9554 GB, free: 3.379 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.625e-06/0.2392, allocations: 4 kB / 0.9554 GB, free: 3.375 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.133e-06/0.2392, allocations: 0 / 0.9554 GB, free: 3.375 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.2392, allocations: 0 / 0.9554 GB, free: 3.375 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002041/0.2394, allocations: 167.4 kB / 0.9555 GB, free: 3.195 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 3.584e-05/0.2395, allocations: 81.14 kB / 0.9556 GB, free: 3.098 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.129e-05/0.2395, allocations: 0 / 0.9556 GB, free: 3.098 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.839e-05/0.2396, allocations: 7.984 kB / 0.9556 GB, free: 3.09 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.968e-05/0.2396, allocations: 4 kB / 0.9556 GB, free: 3.086 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.926e-06/0.2396, allocations: 0 / 0.9556 GB, free: 3.086 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 3.354e-05/0.2396, allocations: 87.27 kB / 0.9557 GB, free: 3 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.21e-07/0.2396, allocations: 3.938 kB / 0.9557 GB, free: 2.996 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002049/0.2399, allocations: 8 kB / 0.9557 GB, free: 2.988 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 (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.0001151/0.24, allocations: 103.2 kB / 0.9558 GB, free: 2.879 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0001827/0.2402, allocations: 35.95 kB / 0.9558 GB, free: 2.844 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.2402, allocations: 0 / 0.9558 GB, free: 2.844 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 7.81e-05/0.2403, allocations: 19.98 kB / 0.9559 GB, free: 2.824 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002473/0.2405, allocations: 7.938 kB / 0.9559 GB, free: 2.816 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002218/0.2407, allocations: 105.7 kB / 0.956 GB, free: 2.688 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001986/0.2409, allocations: 0.6844 MB / 0.9566 GB, free: 1.977 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 2.088e-05/0.241, allocations: 3.938 kB / 0.9566 GB, free: 1.973 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.89e-05/0.241, allocations: 15.44 kB / 0.9567 GB, free: 1.957 MB / 0.7325 GB Notification: Performance of SimCode: time 2.3e-07/0.241, allocations: 0 / 0.9567 GB, free: 1.957 MB / 0.7325 GB Notification: Performance of Templates: time 0.002353/0.2434, allocations: 0.5631 MB / 0.9572 GB, free: 1.402 MB / 0.7325 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 -s cvode -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