Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_Buildings_Utilities_Math_Examples_SmoothHeaviside",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.SmoothHeaviside,fileNamePrefix="Buildings_latest_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.01141/0.01141, allocations: 99.56 kB / 15.73 MB, free: 5.996 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.002242/0.002242, allocations: 199.2 kB / 16.68 MB, free: 5.918 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.518/1.518, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.615/2.615, allocations: 461.9 MB / 0.7348 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.002058/0.002058, allocations: 60.14 kB / 1.054 GB, free: 8.172 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8218/0.8238, allocations: 157.4 MB / 1.207 GB, free: 13.68 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothHeaviside): time 0.002822/0.8267, allocations: 1.432 MB / 1.209 GB, free: 12.25 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0008233/0.8276, allocations: 474.9 kB / 1.209 GB, free: 11.78 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.758e-05/0.8276, allocations: 0 / 1.209 GB, free: 11.78 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.082e-05/0.8276, allocations: 3.938 kB / 1.209 GB, free: 11.78 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 6.386e-05/0.8277, allocations: 3.938 kB / 1.209 GB, free: 11.77 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002291/0.828, allocations: 23.97 kB / 1.209 GB, free: 11.75 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 7.444e-05/0.8281, allocations: 23.92 kB / 1.209 GB, free: 11.73 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 9.171e-05/0.8282, allocations: 7.984 kB / 1.209 GB, free: 11.72 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 7.026e-05/0.8282, allocations: 15.94 kB / 1.209 GB, free: 11.7 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 4.129e-05/0.8283, allocations: 15.92 kB / 1.209 GB, free: 11.69 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.193e-05/0.8283, allocations: 0 / 1.209 GB, free: 11.69 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 7.558e-05/0.8284, allocations: 23.92 kB / 1.209 GB, free: 11.66 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 1.446e-05/0.8284, allocations: 4 kB / 1.209 GB, free: 11.66 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 2.646e-05/0.8284, allocations: 11.92 kB / 1.209 GB, free: 11.65 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.000107/0.8286, allocations: 31.89 kB / 1.209 GB, free: 11.62 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.8286, allocations: 0 / 1.209 GB, free: 11.62 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.934e-06/0.8286, allocations: 0 / 1.209 GB, free: 11.62 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 4.969e-06/0.8286, allocations: 0 / 1.209 GB, free: 11.62 MB / 0.9356 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.0004452/0.829, allocations: 353.7 kB / 1.21 GB, free: 11.23 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.175e-05/0.8291, allocations: 8.031 kB / 1.21 GB, free: 11.22 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.432e-05/0.8291, allocations: 34.69 kB / 1.21 GB, free: 11.18 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.891e-05/0.8292, allocations: 8.922 kB / 1.21 GB, free: 11.17 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00011/0.8293, allocations: 172.2 kB / 1.21 GB, free: 10.96 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.246e-05/0.8293, allocations: 4.375 kB / 1.21 GB, free: 10.96 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.033e-05/0.8293, allocations: 4.375 kB / 1.21 GB, free: 10.95 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001764/0.8295, allocations: 49.8 kB / 1.21 GB, free: 10.9 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.062e-05/0.8295, allocations: 4 kB / 1.21 GB, free: 10.89 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.746e-06/0.8295, allocations: 7.938 kB / 1.21 GB, free: 10.89 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.909e-06/0.8295, allocations: 0 / 1.21 GB, free: 10.89 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001835/0.8297, allocations: 27.97 kB / 1.21 GB, free: 10.86 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003316/0.8301, allocations: 256.8 kB / 1.21 GB, free: 10.56 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001279/0.8302, allocations: 38.56 kB / 1.21 GB, free: 10.51 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.007e-05/0.8303, allocations: 24.89 kB / 1.21 GB, free: 10.48 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001208/0.8304, allocations: 81.11 kB / 1.21 GB, free: 10.39 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.743e-05/0.8305, allocations: 30.56 kB / 1.21 GB, free: 10.35 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=2): time 1.072e-06/0.8305, allocations: 0 / 1.21 GB, free: 10.35 MB / 0.9356 GB Notification: Performance of matching and sorting (n=2): time 0.0003691/0.8308, allocations: 89.58 kB / 1.21 GB, free: 10.25 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.412e-05/0.8309, allocations: 51.41 kB / 1.21 GB, free: 10.19 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.765e-05/0.831, allocations: 105.8 kB / 1.211 GB, free: 10.08 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.224e-05/0.831, allocations: 25.7 kB / 1.211 GB, free: 10.05 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 3.833e-05/0.831, allocations: 80.14 kB / 1.211 GB, free: 9.965 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.027e-05/0.8311, allocations: 11.91 kB / 1.211 GB, free: 9.953 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.071e-05/0.8311, allocations: 9.719 kB / 1.211 GB, free: 9.938 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001075/0.8312, allocations: 326.9 kB / 1.211 GB, free: 9.609 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.632e-05/0.8313, allocations: 15.98 kB / 1.211 GB, free: 9.594 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.377e-05/0.8314, allocations: 11.98 kB / 1.211 GB, free: 9.582 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001585/0.8315, allocations: 44.81 kB / 1.211 GB, free: 9.535 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.8315, allocations: 0 / 1.211 GB, free: 9.535 MB / 0.9356 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002043/0.8318, allocations: 69.67 kB / 1.211 GB, free: 9.461 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.319e-05/0.8318, allocations: 4 kB / 1.211 GB, free: 9.457 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.8318, allocations: 0 / 1.211 GB, free: 9.457 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.23e-05/0.8318, allocations: 0 / 1.211 GB, free: 9.457 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.046e-05/0.8319, allocations: 11.98 kB / 1.211 GB, free: 9.445 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.169e-06/0.8319, allocations: 3.938 kB / 1.211 GB, free: 9.441 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.826e-05/0.832, allocations: 7.984 kB / 1.211 GB, free: 9.434 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.003e-06/0.832, allocations: 3.984 kB / 1.211 GB, free: 9.43 MB / 0.9356 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.908e-05/0.8321, allocations: 117.8 kB / 1.211 GB, free: 9.305 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.598e-05/0.8321, allocations: 3.906 kB / 1.211 GB, free: 9.301 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002417/0.8323, allocations: 76.72 kB / 1.211 GB, free: 9.219 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.8323, allocations: 0 / 1.211 GB, free: 9.219 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.688e-06/0.8324, allocations: 0 / 1.211 GB, free: 9.219 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.8324, allocations: 0 / 1.211 GB, free: 9.219 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001693/0.8325, allocations: 169.5 kB / 1.212 GB, free: 9.004 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.8326, allocations: 4.031 kB / 1.212 GB, free: 9 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.203e-05/0.8326, allocations: 11.98 kB / 1.212 GB, free: 8.988 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.8326, allocations: 0 / 1.212 GB, free: 8.988 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.123e-06/0.8326, allocations: 256 / 1.212 GB, free: 8.988 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.376e-06/0.8326, allocations: 4 kB / 1.212 GB, free: 8.984 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.8327, allocations: 0 / 1.212 GB, free: 8.984 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002548/0.8329, allocations: 167.5 kB / 1.212 GB, free: 8.805 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 3.716e-05/0.833, allocations: 81.11 kB / 1.212 GB, free: 8.707 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.237e-05/0.833, allocations: 0 / 1.212 GB, free: 8.707 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.668e-05/0.8331, allocations: 7.984 kB / 1.212 GB, free: 8.699 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.496e-05/0.8331, allocations: 7.938 kB / 1.212 GB, free: 8.691 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.296e-06/0.8331, allocations: 0 / 1.212 GB, free: 8.691 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 3.908e-05/0.8332, allocations: 79.28 kB / 1.212 GB, free: 8.613 MB / 0.9356 GB Notification: Performance of sort global known variables: time 9e-08/0.8332, allocations: 0 / 1.212 GB, free: 8.613 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002364/0.8334, allocations: 11.98 kB / 1.212 GB, free: 8.602 MB / 0.9356 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.0005627/0.834, allocations: 0.7007 MB / 1.213 GB, free: 7.871 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0002242/0.8342, allocations: 43.94 kB / 1.213 GB, free: 7.828 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.8342, allocations: 0 / 1.213 GB, free: 7.828 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 8.702e-05/0.8343, allocations: 19.97 kB / 1.213 GB, free: 7.809 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003137/0.8346, allocations: 11.94 kB / 1.213 GB, free: 7.797 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000444/0.8351, allocations: 135.1 kB / 1.213 GB, free: 7.621 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002565/0.8354, allocations: 0.6768 MB / 1.213 GB, free: 6.918 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 3.335e-05/0.8354, allocations: 12.08 kB / 1.213 GB, free: 6.906 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.294e-05/0.8354, allocations: 7.438 kB / 1.213 GB, free: 6.898 MB / 0.9356 GB Notification: Performance of SimCode: time 2.11e-07/0.8354, allocations: 0 / 1.213 GB, free: 6.898 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02012/0.8556, allocations: 1.441 MB / 1.215 GB, free: 5.547 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.688/8.543, allocations: 10.75 kB / 1.215 GB, free: 5.539 MB / 0.9356 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Examples_SmoothHeaviside_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Examples_SmoothHeaviside.fmu > Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_SmoothHeaviside.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches