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.008969/0.008969, allocations: 98.39 kB / 15.73 MB, free: 5.535 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.002357/0.002357, allocations: 185 kB / 16.67 MB, free: 5.473 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.377/1.377, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.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.49/2.49, allocations: 437 MB / 0.7105 GB, free: 4.367 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001362/0.001362, allocations: 63.91 kB / 1.018 GB, free: 9.91 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7872/0.7886, allocations: 151.6 MB / 1.166 GB, free: 3.906 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothHeaviside): time 0.002364/0.791, allocations: 1.441 MB / 1.168 GB, free: 2.453 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.0006921/0.7917, allocations: 466.2 kB / 1.168 GB, free: 1.992 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.966e-05/0.7918, allocations: 0 / 1.168 GB, free: 1.992 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 2.744e-05/0.7918, allocations: 3.938 kB / 1.168 GB, free: 1.988 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 6.326e-05/0.7919, allocations: 7.984 kB / 1.168 GB, free: 1.98 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001919/0.7921, allocations: 27.91 kB / 1.168 GB, free: 1.953 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 6.062e-05/0.7921, allocations: 23.94 kB / 1.168 GB, free: 1.93 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 8.332e-05/0.7922, allocations: 11.98 kB / 1.168 GB, free: 1.918 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 5.855e-05/0.7923, allocations: 4 kB / 1.168 GB, free: 1.914 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 3.757e-05/0.7923, allocations: 11.92 kB / 1.168 GB, free: 1.902 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.128e-05/0.7924, allocations: 4 kB / 1.168 GB, free: 1.898 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 7.133e-05/0.7924, allocations: 23.91 kB / 1.168 GB, free: 1.875 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 1.414e-05/0.7925, allocations: 8 kB / 1.168 GB, free: 1.867 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 3.694e-05/0.7925, allocations: 11.92 kB / 1.168 GB, free: 1.855 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 9.61e-05/0.7926, allocations: 35.89 kB / 1.168 GB, free: 1.82 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.7926, allocations: 0 / 1.168 GB, free: 1.82 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.403e-06/0.7926, allocations: 0 / 1.168 GB, free: 1.82 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 4.639e-06/0.7926, allocations: 0 / 1.168 GB, free: 1.82 MB / 0.8887 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.0004056/0.793, allocations: 341.7 kB / 1.168 GB, free: 1.441 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.693e-05/0.7931, allocations: 12.92 kB / 1.169 GB, free: 1.43 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.075e-05/0.7931, allocations: 34.75 kB / 1.169 GB, free: 1.387 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.034e-05/0.7931, allocations: 0.9375 kB / 1.169 GB, free: 1.387 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001011/0.7932, allocations: 176.2 kB / 1.169 GB, free: 1.176 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.276e-05/0.7933, allocations: 8.312 kB / 1.169 GB, free: 1.168 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.685e-06/0.7933, allocations: 4.312 kB / 1.169 GB, free: 1.164 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001599/0.7934, allocations: 57.78 kB / 1.169 GB, free: 1.102 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.692e-06/0.7935, allocations: 0 / 1.169 GB, free: 1.102 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.383e-06/0.7935, allocations: 0 / 1.169 GB, free: 1.102 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.101e-06/0.7935, allocations: 4 kB / 1.169 GB, free: 1.098 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001549/0.7936, allocations: 31.91 kB / 1.169 GB, free: 1.066 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003023/0.7939, allocations: 256.9 kB / 1.169 GB, free: 0.7656 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001184/0.7941, allocations: 38.5 kB / 1.169 GB, free: 0.7188 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.341e-05/0.7942, allocations: 24.89 kB / 1.169 GB, free: 0.6914 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000122/0.7943, allocations: 81.11 kB / 1.169 GB, free: 0.5938 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.953e-05/0.7943, allocations: 34.56 kB / 1.169 GB, free: 0.5508 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=2): time 1.062e-06/0.7943, allocations: 0 / 1.169 GB, free: 0.5508 MB / 0.8887 GB Notification: Performance of matching and sorting (n=2): time 0.000322/0.7947, allocations: 81.64 kB / 1.169 GB, free: 476 kB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.564e-05/0.7947, allocations: 55.34 kB / 1.169 GB, free: 408 kB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.161e-05/0.7948, allocations: 105.8 kB / 1.169 GB, free: 292 kB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 1.267e-05/0.7948, allocations: 25.7 kB / 1.169 GB, free: 260 kB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 3.976e-05/0.7949, allocations: 84.27 kB / 1.17 GB, free: 172 kB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 1.508e-05/0.7949, allocations: 7.906 kB / 1.17 GB, free: 164 kB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.835e-05/0.7949, allocations: 13.72 kB / 1.17 GB, free: 144 kB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001192/0.795, allocations: 322.8 kB / 1.17 GB, free: 15.82 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.76e-05/0.7951, allocations: 15.98 kB / 1.17 GB, free: 15.8 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.678e-05/0.7952, allocations: 15.98 kB / 1.17 GB, free: 15.79 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001404/0.7953, allocations: 44.88 kB / 1.17 GB, free: 15.74 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.7953, allocations: 0 / 1.17 GB, free: 15.74 MB / 0.9044 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001816/0.7955, allocations: 61.67 kB / 1.17 GB, free: 15.67 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.389e-05/0.7956, allocations: 4 kB / 1.17 GB, free: 15.67 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.747e-06/0.7956, allocations: 3.938 kB / 1.17 GB, free: 15.66 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.009e-05/0.7956, allocations: 0 / 1.17 GB, free: 15.66 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.226e-05/0.7957, allocations: 11.98 kB / 1.17 GB, free: 15.65 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.699e-06/0.7957, allocations: 4.031 kB / 1.17 GB, free: 15.65 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.478e-05/0.7957, allocations: 7.984 kB / 1.17 GB, free: 15.64 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.799e-06/0.7957, allocations: 0 / 1.17 GB, free: 15.64 MB / 0.9044 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.995e-05/0.7958, allocations: 113.8 kB / 1.17 GB, free: 15.52 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.513e-05/0.7958, allocations: 7.906 kB / 1.17 GB, free: 15.51 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000214/0.7961, allocations: 64.78 kB / 1.17 GB, free: 15.44 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.066e-06/0.7961, allocations: 11.97 kB / 1.17 GB, free: 15.43 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/0.7961, allocations: 256 / 1.17 GB, free: 15.43 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.425e-06/0.7961, allocations: 0 / 1.17 GB, free: 15.43 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001524/0.7962, allocations: 169.6 kB / 1.17 GB, free: 15.21 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.7963, allocations: 0 / 1.17 GB, free: 15.21 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.746e-05/0.7963, allocations: 15.92 kB / 1.17 GB, free: 15.2 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/0.7963, allocations: 0 / 1.17 GB, free: 15.2 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.252e-06/0.7963, allocations: 0 / 1.17 GB, free: 15.2 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.725e-06/0.7963, allocations: 3.984 kB / 1.17 GB, free: 15.19 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.7963, allocations: 0 / 1.17 GB, free: 15.19 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002338/0.7966, allocations: 163.5 kB / 1.171 GB, free: 15.02 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 3.131e-05/0.7966, allocations: 81.11 kB / 1.171 GB, free: 14.92 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.315e-05/0.7966, allocations: 7.938 kB / 1.171 GB, free: 14.91 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.037e-05/0.7967, allocations: 3.984 kB / 1.171 GB, free: 14.91 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.995e-05/0.7968, allocations: 4 kB / 1.171 GB, free: 14.9 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.156e-06/0.7968, allocations: 0 / 1.171 GB, free: 14.9 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 3.452e-05/0.7968, allocations: 83.31 kB / 1.171 GB, free: 14.82 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.21e-07/0.7968, allocations: 0 / 1.171 GB, free: 14.82 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002234/0.797, allocations: 15.98 kB / 1.171 GB, free: 14.8 MB / 0.9044 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.0005127/0.7976, allocations: 0.7045 MB / 1.171 GB, free: 14.07 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0001869/0.7978, allocations: 35.97 kB / 1.171 GB, free: 14.04 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.7978, allocations: 0 / 1.171 GB, free: 14.04 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 7.745e-05/0.7979, allocations: 23.91 kB / 1.172 GB, free: 14.01 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002698/0.7981, allocations: 11.94 kB / 1.172 GB, free: 14 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003841/0.7985, allocations: 135.3 kB / 1.172 GB, free: 13.83 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002262/0.7988, allocations: 0.6768 MB / 1.172 GB, free: 13.12 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 2.13e-05/0.7988, allocations: 0 / 1.172 GB, free: 13.12 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.895e-05/0.7988, allocations: 15.44 kB / 1.172 GB, free: 13.11 MB / 0.9044 GB Notification: Performance of SimCode: time 2.11e-07/0.7988, allocations: 0 / 1.172 GB, free: 13.11 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01767/0.8165, allocations: 1.43 MB / 1.174 GB, free: 11.77 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.721/8.538, allocations: 5.984 kB / 1.174 GB, free: 11.76 MB / 0.9044 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