Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_Buildings.Utilities.Math.Examples.SmoothHeaviside") translateModel(Buildings.Utilities.Math.Examples.SmoothHeaviside,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoothHeaviside.y",fileNamePrefix="Buildings_10_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.001059/0.00106, allocations: 98.8 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.001712/0.001712, allocations: 183.2 kB / 16.92 MB, free: 6.895 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.379/1.379, allocations: 223.3 MB / 241 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.635/2.635, allocations: 437.8 MB / 0.7128 GB, free: 7.004 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003833/0.0003836, allocations: 12 kB / 0.8735 GB, free: 3.34 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8215/0.8219, allocations: 153.8 MB / 1.024 GB, free: 15.89 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothHeaviside): time 0.001704/0.8237, allocations: 1.168 MB / 1.025 GB, free: 14.72 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.0008185/0.8245, allocations: 459.8 kB / 1.025 GB, free: 14.26 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.514e-05/0.8246, allocations: 4 kB / 1.025 GB, free: 14.26 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.623e-05/0.8246, allocations: 0 / 1.025 GB, free: 14.26 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 6.848e-05/0.8247, allocations: 7.938 kB / 1.025 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001698/0.8248, allocations: 19.97 kB / 1.025 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 5.608e-05/0.8249, allocations: 23.92 kB / 1.025 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 7.625e-05/0.825, allocations: 4 kB / 1.025 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 5.565e-05/0.8251, allocations: 7.938 kB / 1.025 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 4.304e-05/0.8251, allocations: 7.984 kB / 1.025 GB, free: 14.19 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.039e-05/0.8251, allocations: 4 kB / 1.025 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 6.766e-05/0.8252, allocations: 19.92 kB / 1.025 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.194e-05/0.8252, allocations: 3.938 kB / 1.025 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 4.405e-05/0.8253, allocations: 45.61 kB / 1.025 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 7.38e-05/0.8253, allocations: 19.97 kB / 1.025 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.506e-06/0.8254, allocations: 0 / 1.025 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.793e-06/0.8254, allocations: 4 kB / 1.025 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 3.446e-06/0.8254, allocations: 0 / 1.025 GB, free: 14.09 MB / 0.7794 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.0003905/0.8258, allocations: 341.5 kB / 1.026 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.593e-05/0.8258, allocations: 8.031 kB / 1.026 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.005e-05/0.8258, allocations: 4.938 kB / 1.026 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000114/0.826, allocations: 172.2 kB / 1.026 GB, free: 13.49 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.031e-05/0.826, allocations: 384 / 1.026 GB, free: 13.49 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.788e-06/0.826, allocations: 4.375 kB / 1.026 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001908/0.8262, allocations: 61.92 kB / 1.026 GB, free: 13.42 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.522e-06/0.8262, allocations: 3.938 kB / 1.026 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.095e-05/0.8262, allocations: 4 kB / 1.026 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.968e-06/0.8262, allocations: 0 / 1.026 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001781/0.8264, allocations: 47.95 kB / 1.026 GB, free: 13.36 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003046/0.8267, allocations: 248.9 kB / 1.026 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001289/0.8269, allocations: 50.55 kB / 1.026 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.271e-05/0.827, allocations: 24.91 kB / 1.026 GB, free: 12.99 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001211/0.8271, allocations: 85.05 kB / 1.026 GB, free: 12.89 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.078e-05/0.8271, allocations: 34.55 kB / 1.026 GB, free: 12.84 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=2): time 1.252e-06/0.8271, allocations: 8 kB / 1.026 GB, free: 12.84 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2): time 0.0003577/0.8275, allocations: 89.66 kB / 1.027 GB, free: 12.74 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.289e-05/0.8276, allocations: 59.52 kB / 1.027 GB, free: 12.67 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.297e-05/0.8276, allocations: 105.9 kB / 1.027 GB, free: 12.56 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.237e-05/0.8277, allocations: 25.7 kB / 1.027 GB, free: 12.53 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.727e-05/0.8277, allocations: 80.14 kB / 1.027 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.076e-05/0.8277, allocations: 11.89 kB / 1.027 GB, free: 12.43 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.158e-05/0.8278, allocations: 13.72 kB / 1.027 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.000106/0.8279, allocations: 314.8 kB / 1.027 GB, free: 12.1 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.335e-05/0.828, allocations: 19.98 kB / 1.027 GB, free: 12.08 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.306e-05/0.8281, allocations: 27.92 kB / 1.027 GB, free: 12.05 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000179/0.8283, allocations: 60.75 kB / 1.027 GB, free: 11.99 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.8283, allocations: 0 / 1.027 GB, free: 11.99 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.000206/0.8285, allocations: 77.58 kB / 1.027 GB, free: 11.91 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.612e-05/0.8285, allocations: 7.984 kB / 1.027 GB, free: 11.9 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.098e-06/0.8285, allocations: 4.031 kB / 1.027 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.087e-06/0.8285, allocations: 0 / 1.027 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.597e-05/0.8286, allocations: 8 kB / 1.027 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.458e-06/0.8286, allocations: 0 / 1.027 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.375e-05/0.8287, allocations: 11.98 kB / 1.027 GB, free: 11.88 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.613e-06/0.8287, allocations: 4 kB / 1.027 GB, free: 11.87 MB / 0.7794 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.734e-05/0.8288, allocations: 113.7 kB / 1.027 GB, free: 11.75 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.282e-05/0.8288, allocations: 8 kB / 1.027 GB, free: 11.74 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002423/0.8291, allocations: 84.77 kB / 1.028 GB, free: 11.65 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.073e-06/0.8291, allocations: 0 / 1.028 GB, free: 11.65 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.636e-06/0.8291, allocations: 0 / 1.028 GB, free: 11.65 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.394e-06/0.8291, allocations: 4.031 kB / 1.028 GB, free: 11.65 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001536/0.8292, allocations: 161.6 kB / 1.028 GB, free: 11.44 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.8293, allocations: 4 kB / 1.028 GB, free: 11.44 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.014e-05/0.8293, allocations: 11.98 kB / 1.028 GB, free: 11.43 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.314e-06/0.8293, allocations: 0 / 1.028 GB, free: 11.43 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.632e-06/0.8293, allocations: 0 / 1.028 GB, free: 11.43 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/0.8293, allocations: 0 / 1.028 GB, free: 11.43 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.8294, allocations: 3.938 kB / 1.028 GB, free: 11.42 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002527/0.8296, allocations: 183.4 kB / 1.028 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.19e-05/0.8297, allocations: 81.02 kB / 1.028 GB, free: 11.13 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.149e-05/0.8297, allocations: 0 / 1.028 GB, free: 11.13 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.972e-05/0.8298, allocations: 16.02 kB / 1.028 GB, free: 11.11 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.124e-05/0.8298, allocations: 0 / 1.028 GB, free: 11.11 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.866e-06/0.8298, allocations: 0 / 1.028 GB, free: 11.11 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.587e-05/0.8298, allocations: 87.52 kB / 1.028 GB, free: 11.03 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8299, allocations: 0 / 1.028 GB, free: 11.03 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002191/0.8301, allocations: 8 kB / 1.028 GB, free: 11.02 MB / 0.7794 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.0001263/0.8302, allocations: 99.23 kB / 1.028 GB, free: 10.91 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002124/0.8304, allocations: 51.95 kB / 1.028 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.8304, allocations: 3.938 kB / 1.028 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 9.013e-05/0.8305, allocations: 27.92 kB / 1.028 GB, free: 10.83 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002759/0.8308, allocations: 16 kB / 1.028 GB, free: 10.82 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002575/0.8311, allocations: 134.4 kB / 1.028 GB, free: 10.65 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002353/0.8313, allocations: 0.677 MB / 1.029 GB, free: 9.949 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.235e-05/0.8314, allocations: 11.44 kB / 1.029 GB, free: 9.938 MB / 0.7794 GB Notification: Performance of SimCode: time 2.9e-07/0.8314, allocations: 0 / 1.029 GB, free: 9.938 MB / 0.7794 GB Notification: Performance of Templates: time 0.002196/0.8336, allocations: 0.6417 MB / 1.03 GB, free: 9.301 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Utilities.Math.Examples.SmoothHeaviside.makefile (rm -f Buildings_10_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Examples.SmoothHeaviside.sim & ./Buildings_10_Buildings.Utilities.Math.Examples.SmoothHeaviside -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Examples.SmoothHeaviside_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Examples_SmoothHeaviside.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Examples.SmoothHeaviside.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches