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.001575/0.001575, allocations: 112.6 kB / 16.37 MB, free: 6 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.002018/0.002018, allocations: 196 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.373/1.373, allocations: 222.9 MB / 241 MB, free: 15.17 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 2.209/2.209, allocations: 390.3 MB / 0.6655 GB, free: 0.5703 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001338/0.001338, allocations: 64.67 kB / 0.814 GB, free: 32.72 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2478/0.2491, allocations: 140.4 MB / 0.9511 GB, free: 8.07 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothHeaviside): time 0.002707/0.2519, allocations: 1.44 MB / 0.9525 GB, free: 6.621 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0008011/0.2527, allocations: 465.9 kB / 0.953 GB, free: 6.16 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.89e-05/0.2528, allocations: 0 / 0.953 GB, free: 6.16 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 2.361e-05/0.2528, allocations: 4 kB / 0.953 GB, free: 6.156 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 6.238e-05/0.2529, allocations: 15.86 kB / 0.953 GB, free: 6.141 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002134/0.2531, allocations: 15.92 kB / 0.953 GB, free: 6.125 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 6.922e-05/0.2532, allocations: 31.91 kB / 0.953 GB, free: 6.094 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 9.434e-05/0.2533, allocations: 4 kB / 0.953 GB, free: 6.09 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 6.858e-05/0.2534, allocations: 11.94 kB / 0.953 GB, free: 6.078 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 4.026e-05/0.2534, allocations: 11.98 kB / 0.9531 GB, free: 6.066 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.151e-05/0.2534, allocations: 0 / 0.9531 GB, free: 6.066 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 8.039e-05/0.2535, allocations: 19.98 kB / 0.9531 GB, free: 6.047 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 1.662e-05/0.2536, allocations: 15.92 kB / 0.9531 GB, free: 6.031 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 2.734e-05/0.2536, allocations: 11.94 kB / 0.9531 GB, free: 6.02 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001231/0.2537, allocations: 31.89 kB / 0.9531 GB, free: 5.988 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.76e-06/0.2537, allocations: 0 / 0.9531 GB, free: 5.988 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.773e-06/0.2537, allocations: 3.938 kB / 0.9531 GB, free: 5.984 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 5.941e-06/0.2537, allocations: 0 / 0.9531 GB, free: 5.984 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.0005187/0.2543, allocations: 339.4 kB / 0.9535 GB, free: 5.605 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.923e-05/0.2543, allocations: 12.03 kB / 0.9535 GB, free: 5.594 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.059e-05/0.2544, allocations: 4.844 kB / 0.9535 GB, free: 5.59 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001286/0.2545, allocations: 168.4 kB / 0.9536 GB, free: 5.387 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.322e-05/0.2545, allocations: 4.375 kB / 0.9536 GB, free: 5.383 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.463e-05/0.2545, allocations: 4.375 kB / 0.9536 GB, free: 5.379 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001999/0.2547, allocations: 53.97 kB / 0.9537 GB, free: 5.32 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.718e-06/0.2548, allocations: 4 kB / 0.9537 GB, free: 5.316 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.096e-05/0.2548, allocations: 4 kB / 0.9537 GB, free: 5.312 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.589e-06/0.2548, allocations: 0 / 0.9537 GB, free: 5.312 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001591/0.255, allocations: 35.91 kB / 0.9537 GB, free: 5.277 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003155/0.2553, allocations: 252.9 kB / 0.954 GB, free: 4.98 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000125/0.2554, allocations: 34.56 kB / 0.954 GB, free: 4.938 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.109e-05/0.2555, allocations: 28.89 kB / 0.954 GB, free: 4.906 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001281/0.2556, allocations: 81.11 kB / 0.9541 GB, free: 4.809 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.406e-05/0.2557, allocations: 34.56 kB / 0.9542 GB, free: 4.766 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=2): time 2.765e-06/0.2557, allocations: 0 / 0.9542 GB, free: 4.766 MB / 0.7325 GB Notification: Performance of matching and sorting (n=2): time 0.0003462/0.256, allocations: 89.48 kB / 0.9542 GB, free: 4.672 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.119e-05/0.2561, allocations: 51.41 kB / 0.9543 GB, free: 4.609 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.368e-05/0.2562, allocations: 105.8 kB / 0.9544 GB, free: 4.496 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.217e-05/0.2562, allocations: 25.7 kB / 0.9544 GB, free: 4.465 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 4.453e-05/0.2562, allocations: 84.27 kB / 0.9545 GB, free: 4.379 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 1.618e-05/0.2562, allocations: 3.906 kB / 0.9545 GB, free: 4.375 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.289e-05/0.2563, allocations: 17.72 kB / 0.9545 GB, free: 4.352 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 9.512e-05/0.2564, allocations: 314.8 kB / 0.9548 GB, free: 4.035 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.941e-05/0.2565, allocations: 15.98 kB / 0.9548 GB, free: 4.02 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.614e-05/0.2565, allocations: 15.98 kB / 0.9548 GB, free: 4.004 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001473/0.2567, allocations: 48.77 kB / 0.9549 GB, free: 3.953 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.898e-06/0.2567, allocations: 7.922 kB / 0.9549 GB, free: 3.945 MB / 0.7325 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001839/0.2569, allocations: 61.67 kB / 0.955 GB, free: 3.879 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.41e-05/0.2569, allocations: 8 kB / 0.955 GB, free: 3.871 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.783e-06/0.2569, allocations: 0 / 0.955 GB, free: 3.871 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.396e-05/0.257, allocations: 3.938 kB / 0.955 GB, free: 3.867 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.755e-05/0.257, allocations: 11.98 kB / 0.955 GB, free: 3.855 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.528e-06/0.2571, allocations: 4.031 kB / 0.955 GB, free: 3.852 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.782e-05/0.2571, allocations: 11.92 kB / 0.955 GB, free: 3.84 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.29e-06/0.2571, allocations: 0 / 0.955 GB, free: 3.84 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.905e-05/0.2572, allocations: 109.8 kB / 0.9551 GB, free: 3.723 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.167e-05/0.2572, allocations: 4 kB / 0.9551 GB, free: 3.719 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000226/0.2575, allocations: 72.72 kB / 0.9552 GB, free: 3.641 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.2575, allocations: 4.031 kB / 0.9552 GB, free: 3.637 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.2575, allocations: 0 / 0.9552 GB, free: 3.637 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/0.2575, allocations: 4 kB / 0.9552 GB, free: 3.633 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001575/0.2577, allocations: 165.6 kB / 0.9553 GB, free: 3.422 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.2577, allocations: 0 / 0.9553 GB, free: 3.422 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.802e-05/0.2577, allocations: 7.984 kB / 0.9553 GB, free: 3.414 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.2577, allocations: 0 / 0.9553 GB, free: 3.414 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.473e-06/0.2578, allocations: 4 kB / 0.9554 GB, free: 3.41 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.714e-06/0.2578, allocations: 256 / 0.9554 GB, free: 3.41 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.2578, allocations: 0 / 0.9554 GB, free: 3.41 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002254/0.258, allocations: 179.3 kB / 0.9555 GB, free: 3.219 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 3.04e-05/0.258, allocations: 77.11 kB / 0.9556 GB, free: 3.125 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.234e-05/0.2581, allocations: 0 / 0.9556 GB, free: 3.125 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.569e-05/0.2581, allocations: 7.984 kB / 0.9556 GB, free: 3.117 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.882e-05/0.2582, allocations: 4 kB / 0.9556 GB, free: 3.113 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.587e-06/0.2582, allocations: 4.031 kB / 0.9556 GB, free: 3.109 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 3.816e-05/0.2582, allocations: 83.28 kB / 0.9557 GB, free: 3.027 MB / 0.7325 GB Notification: Performance of sort global known variables: time 2.2e-07/0.2582, allocations: 0 / 0.9557 GB, free: 3.027 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002491/0.2585, allocations: 11.98 kB / 0.9557 GB, free: 3.016 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.0001422/0.2586, allocations: 99.25 kB / 0.9558 GB, free: 2.91 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002022/0.2588, allocations: 31.97 kB / 0.9558 GB, free: 2.879 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 4.007e-06/0.2589, allocations: 4.062 kB / 0.9558 GB, free: 2.875 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 8.249e-05/0.259, allocations: 27.91 kB / 0.9559 GB, free: 2.848 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002796/0.2592, allocations: 7.938 kB / 0.9559 GB, free: 2.84 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002935/0.2595, allocations: 105.6 kB / 0.956 GB, free: 2.711 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002333/0.2598, allocations: 0.6805 MB / 0.9566 GB, free: 2.004 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 2.654e-05/0.2598, allocations: 7.875 kB / 0.9566 GB, free: 1.996 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.092e-05/0.2598, allocations: 15.5 kB / 0.9567 GB, free: 1.98 MB / 0.7325 GB Notification: Performance of SimCode: time 2.5e-07/0.2599, allocations: 0 / 0.9567 GB, free: 1.98 MB / 0.7325 GB Notification: Performance of Templates: time 0.002807/0.2627, allocations: 0.5622 MB / 0.9572 GB, free: 1.426 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 gbode -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