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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.007105/0.007105, allocations: 100.5 kB / 15.73 MB, free: 6.008 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.001856/0.001856, allocations: 197.3 kB / 16.67 MB, free: 5.926 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.398/1.398, 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 12.0.0-master/package.mo): time 2.788/2.788, allocations: 482.4 MB / 0.7548 GB, free: 6.895 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001981/0.001982, allocations: 69.36 kB / 1.083 GB, free: 13.9 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2896/0.2915, allocations: 162.2 MB / 1.241 GB, free: 9.246 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothHeaviside): time 0.002401/0.294, allocations: 1.44 MB / 1.243 GB, free: 7.797 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0007309/0.2947, allocations: 460.5 kB / 1.243 GB, free: 7.344 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.057e-05/0.2948, allocations: 4 kB / 1.243 GB, free: 7.34 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 2.404e-05/0.2948, allocations: 7.938 kB / 1.243 GB, free: 7.332 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 4.623e-05/0.2949, allocations: 3.938 kB / 1.243 GB, free: 7.328 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001712/0.295, allocations: 27.97 kB / 1.243 GB, free: 7.301 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 6.027e-05/0.2951, allocations: 23.86 kB / 1.243 GB, free: 7.277 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 7.926e-05/0.2952, allocations: 15.92 kB / 1.243 GB, free: 7.262 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 5.146e-05/0.2952, allocations: 7.938 kB / 1.243 GB, free: 7.254 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 3.854e-05/0.2953, allocations: 15.92 kB / 1.243 GB, free: 7.238 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.009e-05/0.2953, allocations: 0 / 1.243 GB, free: 7.238 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 6.924e-05/0.2954, allocations: 19.98 kB / 1.243 GB, free: 7.219 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 1.156e-05/0.2954, allocations: 8 kB / 1.243 GB, free: 7.211 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 2.555e-05/0.2954, allocations: 15.91 kB / 1.243 GB, free: 7.195 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.000103/0.2955, allocations: 36.12 kB / 1.243 GB, free: 7.16 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 2.936e-06/0.2955, allocations: 0 / 1.243 GB, free: 7.16 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.342e-06/0.2956, allocations: 0 / 1.243 GB, free: 7.16 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 3.727e-06/0.2956, allocations: 0 / 1.243 GB, free: 7.16 MB / 0.9669 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.0004051/0.296, allocations: 343.4 kB / 1.244 GB, free: 6.777 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.427e-05/0.296, allocations: 8.031 kB / 1.244 GB, free: 6.77 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.797e-05/0.2961, allocations: 30.75 kB / 1.244 GB, free: 6.73 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.926e-05/0.2961, allocations: 8.891 kB / 1.244 GB, free: 6.723 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001291/0.2962, allocations: 172.3 kB / 1.244 GB, free: 6.516 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.686e-06/0.2962, allocations: 384 / 1.244 GB, free: 6.516 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.085e-06/0.2962, allocations: 4.359 kB / 1.244 GB, free: 6.512 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001698/0.2964, allocations: 53.8 kB / 1.244 GB, free: 6.453 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.793e-06/0.2964, allocations: 0 / 1.244 GB, free: 6.453 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.502e-06/0.2964, allocations: 0 / 1.244 GB, free: 6.453 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.44e-06/0.2965, allocations: 4 kB / 1.244 GB, free: 6.449 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001749/0.2966, allocations: 31.97 kB / 1.244 GB, free: 6.418 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000307/0.2969, allocations: 252.9 kB / 1.244 GB, free: 6.121 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001295/0.2971, allocations: 42.5 kB / 1.244 GB, free: 6.07 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.525e-05/0.2972, allocations: 20.89 kB / 1.244 GB, free: 6.047 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001371/0.2973, allocations: 89.05 kB / 1.244 GB, free: 5.941 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.628e-05/0.2974, allocations: 30.56 kB / 1.245 GB, free: 5.902 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=2): time 1.112e-06/0.2974, allocations: 0 / 1.245 GB, free: 5.902 MB / 0.9669 GB Notification: Performance of matching and sorting (n=2): time 0.0003617/0.2977, allocations: 89.53 kB / 1.245 GB, free: 5.809 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.943e-05/0.2978, allocations: 51.41 kB / 1.245 GB, free: 5.746 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.259e-05/0.2979, allocations: 110 kB / 1.245 GB, free: 5.629 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.992e-05/0.2979, allocations: 29.7 kB / 1.245 GB, free: 5.594 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 4.88e-05/0.298, allocations: 88.12 kB / 1.245 GB, free: 5.504 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 1.635e-05/0.298, allocations: 7.953 kB / 1.245 GB, free: 5.496 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.11e-05/0.298, allocations: 9.719 kB / 1.245 GB, free: 5.48 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001283/0.2982, allocations: 322.8 kB / 1.245 GB, free: 5.156 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.018e-05/0.2982, allocations: 15.98 kB / 1.245 GB, free: 5.141 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.265e-05/0.2983, allocations: 19.98 kB / 1.245 GB, free: 5.121 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001683/0.2985, allocations: 36.83 kB / 1.245 GB, free: 5.082 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.382e-06/0.2985, allocations: 0 / 1.245 GB, free: 5.082 MB / 0.9669 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002049/0.2987, allocations: 69.59 kB / 1.245 GB, free: 5.008 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.158e-05/0.2988, allocations: 7.938 kB / 1.245 GB, free: 5 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.557e-06/0.2988, allocations: 0 / 1.245 GB, free: 5 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.347e-06/0.2988, allocations: 4.094 kB / 1.245 GB, free: 4.996 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.411e-05/0.2989, allocations: 11.98 kB / 1.245 GB, free: 4.984 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.611e-06/0.2989, allocations: 3.984 kB / 1.245 GB, free: 4.98 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.222e-05/0.2989, allocations: 11.92 kB / 1.245 GB, free: 4.969 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.318e-06/0.2989, allocations: 0 / 1.245 GB, free: 4.969 MB / 0.9669 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 7.939e-05/0.299, allocations: 114.3 kB / 1.245 GB, free: 4.848 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.263e-05/0.2991, allocations: 4 kB / 1.245 GB, free: 4.844 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002307/0.2993, allocations: 72.78 kB / 1.246 GB, free: 4.77 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.021e-06/0.2993, allocations: 4 kB / 1.246 GB, free: 4.766 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.086e-06/0.2993, allocations: 3.938 kB / 1.246 GB, free: 4.762 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.074e-06/0.2993, allocations: 0 / 1.246 GB, free: 4.762 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001715/0.2995, allocations: 165.5 kB / 1.246 GB, free: 4.551 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.61e-07/0.2995, allocations: 0 / 1.246 GB, free: 4.551 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.194e-05/0.2996, allocations: 11.98 kB / 1.246 GB, free: 4.539 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.2996, allocations: 0 / 1.246 GB, free: 4.539 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.731e-06/0.2996, allocations: 0 / 1.246 GB, free: 4.539 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.966e-06/0.2996, allocations: 4.031 kB / 1.246 GB, free: 4.535 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.2996, allocations: 3.938 kB / 1.246 GB, free: 4.531 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002547/0.2999, allocations: 163.5 kB / 1.246 GB, free: 4.355 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 3.942e-05/0.2999, allocations: 77.11 kB / 1.246 GB, free: 4.262 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.303e-05/0.2999, allocations: 4 kB / 1.246 GB, free: 4.258 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.692e-05/0.3, allocations: 4.016 kB / 1.246 GB, free: 4.254 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.391e-05/0.3, allocations: 8 kB / 1.246 GB, free: 4.246 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.995e-06/0.3001, allocations: 0 / 1.246 GB, free: 4.246 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 4.77e-05/0.3001, allocations: 87.53 kB / 1.246 GB, free: 4.16 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.953e-06/0.3001, allocations: 0 / 1.246 GB, free: 4.16 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002285/0.3003, allocations: 11.94 kB / 1.246 GB, free: 4.148 MB / 0.9669 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.0005795/0.3009, allocations: 0.7007 MB / 1.247 GB, free: 3.418 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.000206/0.3011, allocations: 35.97 kB / 1.247 GB, free: 3.383 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.3012, allocations: 0 / 1.247 GB, free: 3.383 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001033/0.3013, allocations: 27.91 kB / 1.247 GB, free: 3.355 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002718/0.3016, allocations: 8.156 kB / 1.247 GB, free: 3.348 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003754/0.3019, allocations: 135 kB / 1.247 GB, free: 3.176 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000278/0.3022, allocations: 0.6768 MB / 1.248 GB, free: 2.473 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 2.853e-05/0.3023, allocations: 7.938 kB / 1.248 GB, free: 2.465 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.186e-05/0.3023, allocations: 11.44 kB / 1.248 GB, free: 2.453 MB / 0.9669 GB Notification: Performance of SimCode: time 2.2e-07/0.3023, allocations: 0 / 1.248 GB, free: 2.453 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02055/0.3229, allocations: 1.427 MB / 1.249 GB, free: 1.109 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.656/7.979, allocations: 5.109 kB / 1.249 GB, free: 1.105 MB / 0.9669 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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 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.csv","/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