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/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 1.956/1.956, allocations: 390.4 MB / 397.7 MB, free: 11.24 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001026/0.001026, allocations: 178 kB / 490.8 MB, free: 1.961 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.369/1.369, allocations: 221.3 MB / 0.7863 GB, free: 13.68 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001097/0.001098, allocations: 84.72 kB / 0.9264 GB, free: 14.2 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 8.255e-06/8.455e-06, allocations: 4 kB / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2578/0.2578, allocations: 143 MB / 1.212 GB, free: 40.1 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6646/0.9224, allocations: 149.7 MB / 1.358 GB, free: 16.91 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001909/0.9227, allocations: 74.73 kB / 1.358 GB, free: 16.91 MB / 0.823 GB Notification: Performance of FrontEnd: time 0.002914/0.9256, allocations: 0.7956 MB / 1.359 GB, free: 16.87 MB / 0.823 GB Notification: Performance of Transformations before backend: time 5.621e-06/0.9256, allocations: 0.8125 kB / 1.359 GB, free: 16.87 MB / 0.823 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.0003252/0.9259, allocations: 345.5 kB / 1.359 GB, free: 32.51 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.937e-05/0.926, allocations: 9.797 kB / 1.359 GB, free: 32.51 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.546e-05/0.926, allocations: 5.156 kB / 1.359 GB, free: 32.51 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.395e-05/0.9261, allocations: 166.7 kB / 1.359 GB, free: 32.31 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.457e-06/0.9261, allocations: 0.9375 kB / 1.359 GB, free: 32.31 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.198e-05/0.9262, allocations: 1.188 kB / 1.359 GB, free: 32.31 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.242e-05/0.9262, allocations: 14.3 kB / 1.359 GB, free: 32.31 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 5.946e-05/0.9263, allocations: 40.06 kB / 1.359 GB, free: 32.27 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.025e-06/0.9263, allocations: 4.656 kB / 1.359 GB, free: 32.27 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.336e-06/0.9263, allocations: 0 / 1.359 GB, free: 32.27 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.707e-06/0.9263, allocations: 1.156 kB / 1.359 GB, free: 32.27 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000351/0.9267, allocations: 244.5 kB / 1.359 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 4.878e-05/0.9267, allocations: 25.48 kB / 1.359 GB, free: 32.01 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.474e-05/0.9268, allocations: 12.72 kB / 1.359 GB, free: 32 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001147/0.9269, allocations: 90.36 kB / 1.359 GB, free: 31.9 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.708e-05/0.9269, allocations: 33.73 kB / 1.36 GB, free: 31.86 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=2): time 1.172e-06/0.9269, allocations: 5.219 kB / 1.36 GB, free: 31.86 MB / 0.8386 GB Notification: Performance of matching and sorting (n=2): time 0.0002403/0.9272, allocations: 51.14 kB / 1.36 GB, free: 31.82 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.788e-05/0.9272, allocations: 55.3 kB / 1.36 GB, free: 31.76 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.073e-05/0.9273, allocations: 94.62 kB / 1.36 GB, free: 31.67 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 7.363e-06/0.9273, allocations: 26.86 kB / 1.36 GB, free: 31.64 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 3.228e-05/0.9273, allocations: 81.83 kB / 1.36 GB, free: 31.56 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.519e-05/0.9273, allocations: 12.78 kB / 1.36 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.845e-06/0.9273, allocations: 0 / 1.36 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 8.189e-05/0.9274, allocations: 313.4 kB / 1.36 GB, free: 31.24 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.524e-05/0.9275, allocations: 10.12 kB / 1.36 GB, free: 31.23 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.305e-05/0.9275, allocations: 3.125 kB / 1.36 GB, free: 31.23 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.404e-05/0.9276, allocations: 17.33 kB / 1.36 GB, free: 31.23 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.9276, allocations: 0.5625 kB / 1.36 GB, free: 31.23 MB / 0.8386 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001263/0.9277, allocations: 59.05 kB / 1.36 GB, free: 31.2 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.006e-05/0.9277, allocations: 4.281 kB / 1.36 GB, free: 31.2 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.278e-06/0.9277, allocations: 1.094 kB / 1.36 GB, free: 31.2 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.028e-05/0.9278, allocations: 0.7969 kB / 1.36 GB, free: 31.2 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.935e-05/0.9279, allocations: 15.22 kB / 1.36 GB, free: 31.19 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.677e-06/0.9279, allocations: 1.766 kB / 1.36 GB, free: 31.19 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.477e-05/0.9279, allocations: 8.672 kB / 1.36 GB, free: 31.19 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.913e-06/0.9279, allocations: 1.781 kB / 1.36 GB, free: 31.19 MB / 0.8386 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 4.979e-05/0.928, allocations: 114.5 kB / 1.36 GB, free: 31.07 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.488e-05/0.928, allocations: 1 kB / 1.36 GB, free: 31.07 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000158/0.9282, allocations: 67.44 kB / 1.36 GB, free: 31.04 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.9282, allocations: 0 / 1.36 GB, free: 31.04 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/0.9282, allocations: 1.578 kB / 1.36 GB, free: 31.04 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.415e-06/0.9282, allocations: 0 / 1.36 GB, free: 31.04 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.344e-05/0.9283, allocations: 139.7 kB / 1.361 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.9283, allocations: 0.7969 kB / 1.361 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.027e-05/0.9284, allocations: 19.69 kB / 1.361 GB, free: 30.87 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/0.9284, allocations: 0 / 1.361 GB, free: 30.87 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.703e-06/0.9284, allocations: 1.594 kB / 1.361 GB, free: 30.87 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.9284, allocations: 0.6562 kB / 1.361 GB, free: 30.87 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.9284, allocations: 0 / 1.361 GB, free: 30.87 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001523/0.9286, allocations: 150.4 kB / 1.361 GB, free: 30.73 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 1.549e-05/0.9286, allocations: 82.94 kB / 1.361 GB, free: 30.64 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.282e-05/0.9286, allocations: 0.7969 kB / 1.361 GB, free: 30.64 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.844e-05/0.9287, allocations: 13.17 kB / 1.361 GB, free: 30.63 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.07e-05/0.9288, allocations: 6.281 kB / 1.361 GB, free: 30.63 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.527e-06/0.9288, allocations: 1.188 kB / 1.361 GB, free: 30.63 MB / 0.8386 GB Notification: Performance of sort global known variables: time 3.371e-05/0.9288, allocations: 79.83 kB / 1.361 GB, free: 30.56 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002076/0.929, allocations: 6.062 kB / 1.361 GB, free: 30.56 MB / 0.8386 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001331/0.9292, allocations: 111.3 kB / 1.361 GB, free: 30.46 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 6.392e-05/0.9292, allocations: 16.19 kB / 1.361 GB, free: 30.46 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.413e-06/0.9292, allocations: 0 / 1.361 GB, free: 30.46 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 1.932e-05/0.9293, allocations: 5.156 kB / 1.361 GB, free: 30.46 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001671/0.9294, allocations: 2.859 kB / 1.361 GB, free: 30.46 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001772/0.9296, allocations: 57.69 kB / 1.361 GB, free: 30.4 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002734/0.9299, allocations: 0.6921 MB / 1.362 GB, free: 29.69 MB / 0.8386 GB Notification: Performance of SimCode: time 2.7e-07/0.9299, allocations: 5.125 kB / 1.362 GB, free: 29.69 MB / 0.8386 GB Notification: Performance of Templates: time 0.002131/0.932, allocations: 0.5159 MB / 1.362 GB, free: 29.64 MB / 0.8386 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","../files/Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches