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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.001266/0.001266, allocations: 108 kB / 15.6 MB, free: 132 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.001314/0.001314, allocations: 195.3 kB / 16.53 MB, free: 6.391 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.283/1.283, allocations: 222.9 MB / 240.2 MB, free: 4.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.271/2.271, allocations: 390.3 MB / 0.6647 GB, free: 484 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001244/0.001244, allocations: 67.89 kB / 0.8126 GB, free: 14.39 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6149/0.6161, allocations: 140.4 MB / 0.9497 GB, free: 9.113 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothHeaviside): time 0.002182/0.6184, allocations: 1.427 MB / 0.9511 GB, free: 7.988 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0005867/0.619, allocations: 464.8 kB / 0.9516 GB, free: 7.629 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.871e-05/0.619, allocations: 0 / 0.9516 GB, free: 7.629 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.387e-05/0.619, allocations: 5.844 kB / 0.9516 GB, free: 7.625 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.62e-05/0.6191, allocations: 7.875 kB / 0.9516 GB, free: 7.617 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000186/0.6193, allocations: 17.98 kB / 0.9516 GB, free: 7.605 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 5.536e-05/0.6194, allocations: 31.14 kB / 0.9516 GB, free: 7.586 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 7.958e-05/0.6194, allocations: 2.969 kB / 0.9516 GB, free: 7.586 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 5.128e-05/0.6195, allocations: 10.98 kB / 0.9516 GB, free: 7.578 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 3.288e-05/0.6195, allocations: 19.95 kB / 0.9516 GB, free: 7.562 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.177e-05/0.6196, allocations: 2.25 kB / 0.9516 GB, free: 7.562 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.028e-05/0.6196, allocations: 17.05 kB / 0.9517 GB, free: 7.555 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.101e-05/0.6196, allocations: 5.578 kB / 0.9517 GB, free: 7.551 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 1.977e-05/0.6197, allocations: 9.562 kB / 0.9517 GB, free: 7.543 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 8.565e-05/0.6197, allocations: 41.98 kB / 0.9517 GB, free: 7.512 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.526e-06/0.6198, allocations: 0 / 0.9517 GB, free: 7.512 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.764e-06/0.6198, allocations: 0 / 0.9517 GB, free: 7.512 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.398e-06/0.6198, allocations: 0 / 0.9517 GB, free: 7.512 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.0003385/0.6201, allocations: 341.1 kB / 0.952 GB, free: 7.148 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.657e-05/0.6202, allocations: 13.39 kB / 0.9521 GB, free: 7.145 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.569e-05/0.6202, allocations: 30.75 kB / 0.9521 GB, free: 7.105 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.502e-05/0.6202, allocations: 10.22 kB / 0.9521 GB, free: 7.098 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.825e-05/0.6203, allocations: 165.7 kB / 0.9523 GB, free: 6.898 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.578e-06/0.6203, allocations: 9.688 kB / 0.9523 GB, free: 6.891 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.365e-06/0.6203, allocations: 5.75 kB / 0.9523 GB, free: 6.887 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001487/0.6205, allocations: 52.8 kB / 0.9523 GB, free: 6.84 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.043e-06/0.6205, allocations: 1.375 kB / 0.9523 GB, free: 6.84 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.724e-06/0.6205, allocations: 0 / 0.9523 GB, free: 6.84 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.26e-06/0.6205, allocations: 3.984 kB / 0.9523 GB, free: 6.836 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001583/0.6207, allocations: 35.45 kB / 0.9524 GB, free: 6.82 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002424/0.6209, allocations: 249.6 kB / 0.9526 GB, free: 6.535 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001137/0.621, allocations: 42.8 kB / 0.9526 GB, free: 6.496 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.952e-05/0.6211, allocations: 22.69 kB / 0.9527 GB, free: 6.48 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001031/0.6212, allocations: 80.45 kB / 0.9527 GB, free: 6.387 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.718e-05/0.6213, allocations: 43.59 kB / 0.9528 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 1.273e-06/0.6213, allocations: 0 / 0.9528 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0003324/0.6216, allocations: 81.8 kB / 0.9529 GB, free: 6.281 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.394e-05/0.6216, allocations: 55.34 kB / 0.9529 GB, free: 6.215 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.192e-05/0.6217, allocations: 104 kB / 0.953 GB, free: 6.109 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 6.252e-06/0.6217, allocations: 26.98 kB / 0.953 GB, free: 6.078 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.638e-05/0.6217, allocations: 89.55 kB / 0.9531 GB, free: 5.988 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.44e-05/0.6218, allocations: 0 / 0.9531 GB, free: 5.988 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.668e-05/0.6218, allocations: 20.2 kB / 0.9531 GB, free: 5.965 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.268e-05/0.6218, allocations: 316.1 kB / 0.9534 GB, free: 5.648 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.88e-05/0.6219, allocations: 17.33 kB / 0.9535 GB, free: 5.641 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.82e-05/0.622, allocations: 13.67 kB / 0.9535 GB, free: 5.637 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001404/0.6221, allocations: 44.47 kB / 0.9535 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.422e-06/0.6222, allocations: 0 / 0.9535 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001747/0.6223, allocations: 72.73 kB / 0.9536 GB, free: 5.555 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.324e-05/0.6224, allocations: 8.531 kB / 0.9536 GB, free: 5.551 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.53e-06/0.6224, allocations: 5.547 kB / 0.9536 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.248e-05/0.6224, allocations: 0 / 0.9536 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.4e-05/0.6225, allocations: 5.594 kB / 0.9536 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.28e-06/0.6225, allocations: 4.031 kB / 0.9536 GB, free: 5.543 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.319e-05/0.6225, allocations: 7.641 kB / 0.9536 GB, free: 5.539 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.729e-06/0.6225, allocations: 1.562 kB / 0.9536 GB, free: 5.539 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 5.169e-05/0.6226, allocations: 111 kB / 0.9537 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.363e-05/0.6226, allocations: 1.906 kB / 0.9537 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002113/0.6228, allocations: 75.12 kB / 0.9538 GB, free: 5.363 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.906e-06/0.6228, allocations: 3.984 kB / 0.9538 GB, free: 5.359 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/0.6229, allocations: 1.656 kB / 0.9538 GB, free: 5.359 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.826e-06/0.6229, allocations: 0 / 0.9538 GB, free: 5.359 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001159/0.623, allocations: 157.6 kB / 0.9539 GB, free: 5.16 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.623, allocations: 1.75 kB / 0.9539 GB, free: 5.16 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.438e-05/0.623, allocations: 17.95 kB / 0.954 GB, free: 5.148 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.6231, allocations: 0 / 0.954 GB, free: 5.148 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.021e-06/0.6231, allocations: 0 / 0.954 GB, free: 5.148 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.6231, allocations: 1.531 kB / 0.954 GB, free: 5.148 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.6231, allocations: 0 / 0.954 GB, free: 5.148 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00021/0.6233, allocations: 176.2 kB / 0.9541 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.692e-05/0.6233, allocations: 77.11 kB / 0.9542 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.233e-05/0.6233, allocations: 1.281 kB / 0.9542 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.297e-05/0.6234, allocations: 7.828 kB / 0.9542 GB, free: 4.887 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.76e-05/0.6234, allocations: 1.281 kB / 0.9542 GB, free: 4.887 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.826e-06/0.6235, allocations: 4.031 kB / 0.9542 GB, free: 4.883 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.371e-05/0.6235, allocations: 87.14 kB / 0.9543 GB, free: 4.801 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.11e-07/0.6235, allocations: 1.094 kB / 0.9543 GB, free: 4.801 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002177/0.6237, allocations: 5.531 kB / 0.9543 GB, free: 4.801 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.0003622/0.6241, allocations: 0.7006 MB / 0.955 GB, free: 4.117 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001871/0.6243, allocations: 37.77 kB / 0.955 GB, free: 4.102 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.6243, allocations: 0 / 0.955 GB, free: 4.102 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 7.712e-05/0.6244, allocations: 22.89 kB / 0.9551 GB, free: 4.09 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002717/0.6246, allocations: 9.938 kB / 0.9551 GB, free: 4.086 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003317/0.625, allocations: 150.3 kB / 0.9552 GB, free: 3.922 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.128e-05/0.6251, allocations: 0.6844 MB / 0.9559 GB, free: 3.215 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.217e-05/0.6251, allocations: 5.391 kB / 0.9559 GB, free: 3.211 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.509e-05/0.6251, allocations: 12.86 kB / 0.9559 GB, free: 3.199 MB / 0.7169 GB Notification: Performance of SimCode: time 2e-07/0.6251, allocations: 0 / 0.9559 GB, free: 3.199 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01657/0.6417, allocations: 1.386 MB / 0.9572 GB, free: 2.41 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.055/7.697, allocations: 11.33 kB / 0.9573 GB, free: 2.402 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