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.001261/0.001261, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.00128/0.001279, allocations: 197.9 kB / 16.14 MB, free: 6.719 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.362/1.362, allocations: 222.9 MB / 239.8 MB, free: 4.641 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.224/2.224, allocations: 390.2 MB / 0.6643 GB, free: 0.6094 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001219/0.001219, allocations: 71.88 kB / 0.812 GB, free: 14.79 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5429/0.5441, allocations: 140.3 MB / 0.949 GB, free: 9.098 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothHeaviside): time 0.002398/0.5465, allocations: 1.5 MB / 0.9505 GB, free: 7.918 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0006999/0.5472, allocations: 455 kB / 0.9509 GB, free: 7.57 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.07e-05/0.5473, allocations: 4 kB / 0.9509 GB, free: 7.566 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.16e-05/0.5473, allocations: 0 / 0.9509 GB, free: 7.566 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.903e-05/0.5474, allocations: 5.312 kB / 0.951 GB, free: 7.562 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001742/0.5476, allocations: 18.86 kB / 0.951 GB, free: 7.551 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 5.913e-05/0.5477, allocations: 25.55 kB / 0.951 GB, free: 7.535 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.637e-05/0.5478, allocations: 2.75 kB / 0.951 GB, free: 7.535 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.532e-05/0.5478, allocations: 19.98 kB / 0.951 GB, free: 7.52 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.495e-05/0.5479, allocations: 8.109 kB / 0.951 GB, free: 7.516 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.194e-05/0.5479, allocations: 5.312 kB / 0.951 GB, free: 7.512 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.049e-05/0.548, allocations: 20.23 kB / 0.951 GB, free: 7.5 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.432e-05/0.548, allocations: 13.3 kB / 0.9511 GB, free: 7.488 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.358e-05/0.548, allocations: 5.312 kB / 0.9511 GB, free: 7.484 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001071/0.5482, allocations: 29.58 kB / 0.9511 GB, free: 7.465 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.107e-06/0.5482, allocations: 0 / 0.9511 GB, free: 7.465 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.894e-06/0.5482, allocations: 3.984 kB / 0.9511 GB, free: 7.461 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 8.166e-06/0.5482, allocations: 0 / 0.9511 GB, free: 7.461 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.0003787/0.5486, allocations: 344.8 kB / 0.9514 GB, free: 7.094 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.138e-05/0.5486, allocations: 9.625 kB / 0.9514 GB, free: 7.094 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.822e-05/0.5486, allocations: 34.75 kB / 0.9515 GB, free: 7.051 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.942e-05/0.5487, allocations: 6.219 kB / 0.9515 GB, free: 7.047 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.243e-05/0.5488, allocations: 171 kB / 0.9516 GB, free: 6.844 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.109e-05/0.5488, allocations: 4.312 kB / 0.9516 GB, free: 6.84 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.689e-06/0.5488, allocations: 5.75 kB / 0.9516 GB, free: 6.836 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001631/0.549, allocations: 54.16 kB / 0.9517 GB, free: 6.789 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.705e-06/0.549, allocations: 0 / 0.9517 GB, free: 6.789 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.071e-05/0.549, allocations: 8 kB / 0.9517 GB, free: 6.781 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.641e-06/0.549, allocations: 1.375 kB / 0.9517 GB, free: 6.781 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001507/0.5492, allocations: 37.83 kB / 0.9517 GB, free: 6.762 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002642/0.5494, allocations: 246.5 kB / 0.952 GB, free: 6.48 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001102/0.5496, allocations: 42.86 kB / 0.952 GB, free: 6.441 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.672e-05/0.5496, allocations: 26.47 kB / 0.952 GB, free: 6.422 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 9.74e-05/0.5497, allocations: 81.23 kB / 0.9521 GB, free: 6.328 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.385e-05/0.5498, allocations: 34.55 kB / 0.9522 GB, free: 6.285 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 1.273e-06/0.5498, allocations: 0 / 0.9522 GB, free: 6.285 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0003248/0.5501, allocations: 81.22 kB / 0.9522 GB, free: 6.23 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.65e-05/0.5501, allocations: 56.77 kB / 0.9523 GB, free: 6.164 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.691e-05/0.5502, allocations: 103.5 kB / 0.9524 GB, free: 6.059 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 6.021e-06/0.5502, allocations: 27.08 kB / 0.9524 GB, free: 6.027 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.18e-05/0.5502, allocations: 89.42 kB / 0.9525 GB, free: 5.938 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.29e-05/0.5502, allocations: 0 / 0.9525 GB, free: 5.938 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.676e-05/0.5503, allocations: 20.45 kB / 0.9525 GB, free: 5.914 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.489e-05/0.5503, allocations: 316.2 kB / 0.9528 GB, free: 5.598 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.49e-05/0.5504, allocations: 17.61 kB / 0.9528 GB, free: 5.59 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.277e-05/0.5505, allocations: 17.61 kB / 0.9529 GB, free: 5.582 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001293/0.5506, allocations: 38.88 kB / 0.9529 GB, free: 5.559 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.5506, allocations: 0 / 0.9529 GB, free: 5.559 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001652/0.5508, allocations: 77 kB / 0.953 GB, free: 5.5 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.381e-05/0.5508, allocations: 7.344 kB / 0.953 GB, free: 5.5 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.787e-06/0.5508, allocations: 4.094 kB / 0.953 GB, free: 5.496 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.818e-06/0.5508, allocations: 1.312 kB / 0.953 GB, free: 5.496 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.8e-05/0.5509, allocations: 9.562 kB / 0.953 GB, free: 5.492 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.869e-06/0.5509, allocations: 0 / 0.953 GB, free: 5.492 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.389e-05/0.551, allocations: 8.078 kB / 0.953 GB, free: 5.488 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.19e-06/0.551, allocations: 1.812 kB / 0.953 GB, free: 5.488 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 3.844e-05/0.551, allocations: 111.5 kB / 0.9531 GB, free: 5.371 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.283e-05/0.551, allocations: 0 / 0.9531 GB, free: 5.371 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001994/0.5512, allocations: 83.89 kB / 0.9532 GB, free: 5.305 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.214e-06/0.5512, allocations: 0 / 0.9532 GB, free: 5.305 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.5513, allocations: 5.312 kB / 0.9532 GB, free: 5.301 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.094e-06/0.5513, allocations: 0 / 0.9532 GB, free: 5.301 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.892e-05/0.5514, allocations: 157.9 kB / 0.9533 GB, free: 5.102 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.482e-06/0.5514, allocations: 1.094 kB / 0.9533 GB, free: 5.102 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.332e-05/0.5514, allocations: 9.453 kB / 0.9533 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.255e-06/0.5514, allocations: 1.188 kB / 0.9533 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.071e-06/0.5514, allocations: 4.031 kB / 0.9534 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.5515, allocations: 256 / 0.9534 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.5515, allocations: 1.094 kB / 0.9534 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001832/0.5516, allocations: 167.9 kB / 0.9535 GB, free: 4.938 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.485e-05/0.5517, allocations: 81.11 kB / 0.9536 GB, free: 4.84 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.192e-05/0.5517, allocations: 1.312 kB / 0.9536 GB, free: 4.84 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.058e-05/0.5518, allocations: 11.67 kB / 0.9536 GB, free: 4.832 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.338e-05/0.5518, allocations: 1.406 kB / 0.9536 GB, free: 4.832 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.046e-06/0.5518, allocations: 0 / 0.9536 GB, free: 4.832 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.334e-05/0.5518, allocations: 88.8 kB / 0.9537 GB, free: 4.75 MB / 0.7169 GB Notification: Performance of sort global known variables: time 8.62e-07/0.5518, allocations: 0 / 0.9537 GB, free: 4.75 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000217/0.5521, allocations: 9 kB / 0.9537 GB, free: 4.746 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.0003987/0.5525, allocations: 0.6965 MB / 0.9544 GB, free: 4.066 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001916/0.5527, allocations: 37.11 kB / 0.9544 GB, free: 4.051 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.5527, allocations: 1.531 kB / 0.9544 GB, free: 4.051 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 7.858e-05/0.5528, allocations: 26.67 kB / 0.9544 GB, free: 4.035 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002898/0.5531, allocations: 7.156 kB / 0.9544 GB, free: 4.031 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003341/0.5534, allocations: 143.5 kB / 0.9546 GB, free: 3.871 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.87e-05/0.5535, allocations: 0.6771 MB / 0.9552 GB, free: 3.172 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.581e-05/0.5535, allocations: 5.328 kB / 0.9552 GB, free: 3.168 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.485e-05/0.5536, allocations: 17 kB / 0.9553 GB, free: 3.152 MB / 0.7169 GB Notification: Performance of SimCode: time 2.4e-07/0.5536, allocations: 0 / 0.9553 GB, free: 3.152 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9799/1.533, allocations: 1.224 MB / 0.9565 GB, free: 2.516 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00016/1.534, allocations: 203.8 kB / 0.9567 GB, free: 2.258 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.08/3.614, allocations: 0 / 0.9567 GB, free: 2.258 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