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: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.SmoothHeaviside,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Examples_SmoothHeaviside",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.SmoothHeaviside,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Examples_SmoothHeaviside",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008744/0.0008745, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.005584/0.005584, allocations: 170.1 kB / 16.27 MB, free: 6.66 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.223/1.223, allocations: 223.3 MB / 240.3 MB, free: 5.332 MB / 190.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.133/2.133, allocations: 390.9 MB / 0.6664 GB, free: 2.332 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003125/0.0003126, allocations: 8 kB / 0.8161 GB, free: 13.1 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5739/0.5743, allocations: 142.4 MB / 0.9552 GB, free: 7.602 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothHeaviside): time 0.00122/0.5755, allocations: 1.158 MB / 0.9563 GB, free: 6.684 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0005595/0.5761, allocations: 449.9 kB / 0.9567 GB, free: 6.34 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.431e-05/0.5761, allocations: 1.188 kB / 0.9567 GB, free: 6.34 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.254e-05/0.5761, allocations: 7.938 kB / 0.9567 GB, free: 6.332 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.167e-05/0.5762, allocations: 8.969 kB / 0.9567 GB, free: 6.324 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001477/0.5764, allocations: 25.72 kB / 0.9568 GB, free: 6.305 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 4.918e-05/0.5764, allocations: 22.14 kB / 0.9568 GB, free: 6.293 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 6.92e-05/0.5765, allocations: 7.438 kB / 0.9568 GB, free: 6.289 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 4.768e-05/0.5766, allocations: 3.5 kB / 0.9568 GB, free: 6.289 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 3.656e-05/0.5766, allocations: 15.17 kB / 0.9568 GB, free: 6.277 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 9.388e-06/0.5766, allocations: 1.062 kB / 0.9568 GB, free: 6.277 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 5.638e-05/0.5767, allocations: 20.64 kB / 0.9568 GB, free: 6.266 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 9.427e-06/0.5767, allocations: 11.97 kB / 0.9568 GB, free: 6.254 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.237e-05/0.5767, allocations: 36.89 kB / 0.9569 GB, free: 6.215 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 7.32e-05/0.5768, allocations: 23.81 kB / 0.9569 GB, free: 6.199 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.5768, allocations: 5.016 kB / 0.9569 GB, free: 6.195 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.163e-06/0.5768, allocations: 0 / 0.9569 GB, free: 6.195 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.336e-06/0.5768, allocations: 0 / 0.9569 GB, free: 6.195 MB / 0.7169 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.0002915/0.5771, allocations: 342.7 kB / 0.9572 GB, free: 5.832 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.461e-05/0.5772, allocations: 14.44 kB / 0.9572 GB, free: 5.828 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.308e-05/0.5772, allocations: 34.75 kB / 0.9573 GB, free: 5.785 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.909e-05/0.5772, allocations: 3.062 kB / 0.9573 GB, free: 5.785 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.858e-05/0.5773, allocations: 169.1 kB / 0.9574 GB, free: 5.582 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.779e-06/0.5773, allocations: 1.5 kB / 0.9574 GB, free: 5.582 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.665e-06/0.5773, allocations: 1.344 kB / 0.9574 GB, free: 5.582 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001587/0.5775, allocations: 62.95 kB / 0.9575 GB, free: 5.531 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.851e-06/0.5775, allocations: 0 / 0.9575 GB, free: 5.531 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.555e-06/0.5775, allocations: 4 kB / 0.9575 GB, free: 5.527 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.288e-06/0.5775, allocations: 1.031 kB / 0.9575 GB, free: 5.527 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001705/0.5777, allocations: 44.14 kB / 0.9576 GB, free: 5.512 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002361/0.5779, allocations: 253.3 kB / 0.9578 GB, free: 5.223 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001168/0.5781, allocations: 44.52 kB / 0.9578 GB, free: 5.188 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.498e-05/0.5781, allocations: 28.53 kB / 0.9579 GB, free: 5.172 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 9.302e-05/0.5782, allocations: 83.83 kB / 0.9579 GB, free: 5.074 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.542e-05/0.5783, allocations: 39.53 kB / 0.958 GB, free: 5.027 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 1.051e-06/0.5783, allocations: 0 / 0.958 GB, free: 5.027 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0003353/0.5786, allocations: 99.61 kB / 0.9581 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.29e-05/0.5786, allocations: 55.38 kB / 0.9581 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.892e-05/0.5787, allocations: 101.6 kB / 0.9582 GB, free: 4.801 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 6.682e-06/0.5787, allocations: 25.7 kB / 0.9583 GB, free: 4.77 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.28e-05/0.5787, allocations: 85.36 kB / 0.9583 GB, free: 4.684 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.339e-05/0.5788, allocations: 4.969 kB / 0.9583 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.804e-05/0.5788, allocations: 10.72 kB / 0.9584 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.804e-05/0.5788, allocations: 323.8 kB / 0.9587 GB, free: 4.34 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.428e-05/0.5789, allocations: 22.14 kB / 0.9587 GB, free: 4.332 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.388e-05/0.579, allocations: 25.75 kB / 0.9587 GB, free: 4.32 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001519/0.5792, allocations: 59.03 kB / 0.9588 GB, free: 4.289 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.5792, allocations: 0 / 0.9588 GB, free: 4.289 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001809/0.5793, allocations: 77.95 kB / 0.9588 GB, free: 4.238 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.04e-05/0.5794, allocations: 6.031 kB / 0.9588 GB, free: 4.238 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.747e-06/0.5794, allocations: 0 / 0.9588 GB, free: 4.238 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.337e-06/0.5794, allocations: 3.984 kB / 0.9588 GB, free: 4.234 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.744e-05/0.5795, allocations: 9.156 kB / 0.9589 GB, free: 4.234 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.907e-06/0.5795, allocations: 0 / 0.9589 GB, free: 4.234 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.565e-05/0.5795, allocations: 9.672 kB / 0.9589 GB, free: 4.23 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.94e-06/0.5795, allocations: 5.062 kB / 0.9589 GB, free: 4.227 MB / 0.7169 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 4.038e-05/0.5796, allocations: 116.2 kB / 0.959 GB, free: 4.105 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.168e-05/0.5796, allocations: 1.719 kB / 0.959 GB, free: 4.105 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002091/0.5798, allocations: 79.56 kB / 0.9591 GB, free: 4.051 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/0.5798, allocations: 5.75 kB / 0.9591 GB, free: 4.047 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.5798, allocations: 3.984 kB / 0.9591 GB, free: 4.043 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.805e-06/0.5799, allocations: 3.984 kB / 0.9591 GB, free: 4.039 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.966e-05/0.58, allocations: 158 kB / 0.9592 GB, free: 3.84 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.01e-07/0.58, allocations: 2.094 kB / 0.9592 GB, free: 3.84 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.604e-05/0.58, allocations: 16.3 kB / 0.9592 GB, free: 3.832 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.58, allocations: 0 / 0.9592 GB, free: 3.832 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.979e-06/0.58, allocations: 0 / 0.9592 GB, free: 3.832 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.58, allocations: 1.156 kB / 0.9592 GB, free: 3.832 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.58, allocations: 4 kB / 0.9592 GB, free: 3.828 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002133/0.5803, allocations: 185.4 kB / 0.9594 GB, free: 3.664 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.529e-05/0.5803, allocations: 81.67 kB / 0.9595 GB, free: 3.566 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.07e-05/0.5803, allocations: 5.094 kB / 0.9595 GB, free: 3.562 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.34e-05/0.5804, allocations: 9.891 kB / 0.9595 GB, free: 3.559 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.7e-05/0.5804, allocations: 5.688 kB / 0.9595 GB, free: 3.555 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.775e-06/0.5804, allocations: 0 / 0.9595 GB, free: 3.555 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.988e-05/0.5804, allocations: 83.33 kB / 0.9596 GB, free: 3.477 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.5805, allocations: 1.094 kB / 0.9596 GB, free: 3.477 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.00021/0.5807, allocations: 5.375 kB / 0.9596 GB, free: 3.477 MB / 0.7169 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.0003679/0.581, allocations: 0.7103 MB / 0.9603 GB, free: 2.793 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001896/0.5812, allocations: 50.05 kB / 0.9603 GB, free: 2.773 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.5813, allocations: 1.188 kB / 0.9603 GB, free: 2.773 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 8.489e-05/0.5813, allocations: 28.58 kB / 0.9604 GB, free: 2.762 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002554/0.5816, allocations: 10.62 kB / 0.9604 GB, free: 2.754 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003119/0.5819, allocations: 140.2 kB / 0.9605 GB, free: 2.594 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.052e-05/0.582, allocations: 0.6823 MB / 0.9612 GB, free: 1.891 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.316e-05/0.5821, allocations: 1.375 kB / 0.9612 GB, free: 1.891 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.491e-05/0.5821, allocations: 7.438 kB / 0.9612 GB, free: 1.883 MB / 0.7169 GB Notification: Performance of SimCode: time 5.31e-07/0.5821, allocations: 5.438 kB / 0.9612 GB, free: 1.879 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.009523/0.5916, allocations: 1.151 MB / 0.9623 GB, free: 1.34 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001382/0.5918, allocations: 198.5 kB / 0.9625 GB, free: 1.086 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.46/2.052, allocations: 4 kB / 0.9625 GB, free: 1.082 MB / 0.7169 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Examples.SmoothHeaviside_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Examples_SmoothHeaviside_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_Math_Examples_SmoothHeaviside.fmu > 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