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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.SmoothHeaviside,fileNamePrefix="Buildings_10_Buildings_Utilities_Math_Examples_SmoothHeaviside",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.SmoothHeaviside,fileNamePrefix="Buildings_10_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.001262/0.001262, allocations: 111.9 kB / 15.61 MB, free: 128 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.001487/0.001487, allocations: 196.5 kB / 16.54 MB, free: 6.668 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.346/1.346, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.544/2.544, allocations: 437.1 MB / 0.7104 GB, free: 5.082 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001472/0.001472, allocations: 59.89 kB / 0.8693 GB, free: 4.551 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6505/0.652, allocations: 151.6 MB / 1.017 GB, free: 2.473 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothHeaviside): time 0.002635/0.6546, allocations: 1.445 MB / 1.019 GB, free: 1.02 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0007647/0.6554, allocations: 463.8 kB / 1.019 GB, free: 0.5586 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.802e-05/0.6555, allocations: 4 kB / 1.019 GB, free: 0.5547 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 2.683e-05/0.6555, allocations: 3.938 kB / 1.019 GB, free: 0.5508 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 6.842e-05/0.6556, allocations: 7.922 kB / 1.019 GB, free: 0.543 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002123/0.6558, allocations: 15.98 kB / 1.019 GB, free: 0.5273 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 6.883e-05/0.6559, allocations: 23.92 kB / 1.019 GB, free: 0.5039 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 9.316e-05/0.656, allocations: 11.94 kB / 1.019 GB, free: 0.4922 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 6.844e-05/0.6561, allocations: 19.86 kB / 1.019 GB, free: 484 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 3.932e-05/0.6561, allocations: 11.98 kB / 1.019 GB, free: 472 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.056e-05/0.6561, allocations: 0 / 1.019 GB, free: 472 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 7.664e-05/0.6562, allocations: 23.97 kB / 1.019 GB, free: 448 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.308e-05/0.6563, allocations: 7.938 kB / 1.019 GB, free: 440 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 2.397e-05/0.6563, allocations: 7.938 kB / 1.019 GB, free: 432 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001051/0.6564, allocations: 31.95 kB / 1.019 GB, free: 400 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.6564, allocations: 0 / 1.019 GB, free: 400 kB / 0.7637 GB Notification: Performance of FrontEnd: time 1.633e-06/0.6564, allocations: 0 / 1.019 GB, free: 400 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 5.199e-06/0.6564, allocations: 4 kB / 1.019 GB, free: 396 kB / 0.7637 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.000424/0.6569, allocations: 341.7 kB / 1.02 GB, free: 8 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 4.014e-05/0.6569, allocations: 8.031 kB / 1.02 GB, free: 0 / 0.7637 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.591e-05/0.657, allocations: 30.75 kB / 1.02 GB, free: 15.96 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.075e-05/0.657, allocations: 8.844 kB / 1.02 GB, free: 15.95 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001219/0.6571, allocations: 176.2 kB / 1.02 GB, free: 15.74 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.118e-05/0.6571, allocations: 8.312 kB / 1.02 GB, free: 15.73 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.152e-05/0.6571, allocations: 384 / 1.02 GB, free: 15.73 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001752/0.6573, allocations: 53.81 kB / 1.02 GB, free: 15.68 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.568e-06/0.6573, allocations: 3.984 kB / 1.02 GB, free: 15.67 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.196e-05/0.6574, allocations: 4 kB / 1.02 GB, free: 15.67 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.531e-06/0.6574, allocations: 0 / 1.02 GB, free: 15.67 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001685/0.6576, allocations: 27.97 kB / 1.02 GB, free: 15.64 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003205/0.6579, allocations: 252.9 kB / 1.02 GB, free: 15.34 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001193/0.658, allocations: 42.5 kB / 1.02 GB, free: 15.29 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.738e-05/0.6581, allocations: 20.91 kB / 1.02 GB, free: 15.27 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000116/0.6582, allocations: 89.08 kB / 1.02 GB, free: 15.16 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.416e-05/0.6583, allocations: 34.56 kB / 1.02 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=2): time 9.52e-07/0.6583, allocations: 0 / 1.02 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2): time 0.0003665/0.6586, allocations: 93.48 kB / 1.021 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.013e-05/0.6587, allocations: 51.41 kB / 1.021 GB, free: 14.96 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.694e-05/0.6588, allocations: 109.8 kB / 1.021 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.199e-05/0.6588, allocations: 25.7 kB / 1.021 GB, free: 14.81 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 3.708e-05/0.6588, allocations: 80.14 kB / 1.021 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.744e-05/0.6588, allocations: 7.906 kB / 1.021 GB, free: 14.72 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.227e-05/0.6589, allocations: 17.84 kB / 1.021 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.067e-05/0.659, allocations: 318.8 kB / 1.021 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.307e-05/0.6591, allocations: 19.97 kB / 1.021 GB, free: 14.36 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.118e-05/0.6591, allocations: 11.98 kB / 1.021 GB, free: 14.35 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001487/0.6593, allocations: 36.83 kB / 1.021 GB, free: 14.31 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.6593, allocations: 4.062 kB / 1.021 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.000195/0.6595, allocations: 73.59 kB / 1.021 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.443e-05/0.6595, allocations: 9.812 kB / 1.021 GB, free: 14.22 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.479e-06/0.6595, allocations: 0 / 1.021 GB, free: 14.22 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.304e-05/0.6596, allocations: 0 / 1.021 GB, free: 14.22 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.528e-05/0.6597, allocations: 11.98 kB / 1.021 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.448e-06/0.6597, allocations: 0 / 1.021 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.702e-05/0.6597, allocations: 8.031 kB / 1.021 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.011e-06/0.6597, allocations: 3.984 kB / 1.021 GB, free: 14.2 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 6.974e-05/0.6598, allocations: 113.8 kB / 1.021 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.572e-05/0.6598, allocations: 0 / 1.021 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002259/0.6601, allocations: 76.72 kB / 1.022 GB, free: 13.99 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.276e-06/0.6601, allocations: 0 / 1.022 GB, free: 13.99 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.6601, allocations: 0 / 1.022 GB, free: 13.99 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.855e-06/0.6601, allocations: 7.969 kB / 1.022 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001416/0.6602, allocations: 161.6 kB / 1.022 GB, free: 13.78 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.6603, allocations: 0 / 1.022 GB, free: 13.78 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.662e-05/0.6603, allocations: 8 kB / 1.022 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.6603, allocations: 0 / 1.022 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.426e-06/0.6603, allocations: 3.984 kB / 1.022 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.6603, allocations: 0 / 1.022 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.6603, allocations: 0 / 1.022 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002282/0.6606, allocations: 171.4 kB / 1.022 GB, free: 13.58 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.113e-05/0.6606, allocations: 77.11 kB / 1.022 GB, free: 13.49 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.283e-05/0.6606, allocations: 4 kB / 1.022 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.247e-05/0.6607, allocations: 4 kB / 1.022 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.468e-05/0.6608, allocations: 3.984 kB / 1.022 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.48e-06/0.6608, allocations: 4.25 kB / 1.022 GB, free: 13.47 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.733e-05/0.6608, allocations: 83.28 kB / 1.022 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6608, allocations: 4.031 kB / 1.022 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002225/0.661, allocations: 8 kB / 1.022 GB, free: 13.38 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.0004919/0.6615, allocations: 0.7045 MB / 1.023 GB, free: 12.65 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002064/0.6618, allocations: 40 kB / 1.023 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.6618, allocations: 0 / 1.023 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 8.358e-05/0.6619, allocations: 19.92 kB / 1.023 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002913/0.6622, allocations: 11.92 kB / 1.023 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004266/0.6626, allocations: 139.3 kB / 1.023 GB, free: 12.4 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000212/0.6628, allocations: 0.6768 MB / 1.024 GB, free: 11.7 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 2.513e-05/0.6628, allocations: 7.938 kB / 1.024 GB, free: 11.69 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.875e-05/0.6629, allocations: 7.438 kB / 1.024 GB, free: 11.68 MB / 0.7794 GB Notification: Performance of SimCode: time 2.51e-07/0.6629, allocations: 0 / 1.024 GB, free: 11.68 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01706/0.68, allocations: 1.387 MB / 1.025 GB, free: 10.37 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.352/8.032, allocations: 13.73 kB / 1.025 GB, free: 10.36 MB / 0.7794 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Utilities.Math.Examples.SmoothHeaviside_res.mat --tempDir=temp_Buildings_10_Buildings_Utilities_Math_Examples_SmoothHeaviside_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Utilities_Math_Examples_SmoothHeaviside.fmu > 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