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.006782/0.006782, allocations: 98.39 kB / 15.73 MB, free: 6.031 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.001781/0.001781, allocations: 194.1 kB / 16.67 MB, free: 5.953 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.402/1.402, 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.734/2.734, allocations: 482.6 MB / 0.7551 GB, free: 6.613 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001859/0.001859, allocations: 69.2 kB / 1.083 GB, free: 13.75 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3397/0.3416, allocations: 162.3 MB / 1.242 GB, free: 8.871 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothHeaviside): time 0.002683/0.3443, allocations: 1.448 MB / 1.243 GB, free: 7.414 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.000811/0.3451, allocations: 464.5 kB / 1.244 GB, free: 6.957 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.216e-05/0.3452, allocations: 0 / 1.244 GB, free: 6.957 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.142e-05/0.3452, allocations: 7.938 kB / 1.244 GB, free: 6.949 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 6.307e-05/0.3453, allocations: 7.922 kB / 1.244 GB, free: 6.941 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.000226/0.3455, allocations: 23.98 kB / 1.244 GB, free: 6.918 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 7.096e-05/0.3456, allocations: 23.86 kB / 1.244 GB, free: 6.895 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 9.7e-05/0.3457, allocations: 8 kB / 1.244 GB, free: 6.887 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 7.184e-05/0.3458, allocations: 11.94 kB / 1.244 GB, free: 6.875 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 4.734e-05/0.3458, allocations: 15.91 kB / 1.244 GB, free: 6.859 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.176e-05/0.3459, allocations: 0 / 1.244 GB, free: 6.859 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 8.76e-05/0.3459, allocations: 27.92 kB / 1.244 GB, free: 6.832 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 1.423e-05/0.346, allocations: 7.984 kB / 1.244 GB, free: 6.824 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 2.94e-05/0.346, allocations: 11.94 kB / 1.244 GB, free: 6.812 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001312/0.3461, allocations: 36.11 kB / 1.244 GB, free: 6.777 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.3462, allocations: 0 / 1.244 GB, free: 6.777 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.523e-06/0.3462, allocations: 0 / 1.244 GB, free: 6.777 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.6e-06/0.3462, allocations: 0 / 1.244 GB, free: 6.777 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.0005049/0.3467, allocations: 343.4 kB / 1.244 GB, free: 6.395 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.622e-05/0.3467, allocations: 8.031 kB / 1.244 GB, free: 6.387 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.406e-05/0.3468, allocations: 38.67 kB / 1.244 GB, free: 6.34 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.222e-05/0.3468, allocations: 16.89 kB / 1.244 GB, free: 6.324 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001361/0.347, allocations: 160.4 kB / 1.244 GB, free: 6.129 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.158e-05/0.347, allocations: 384 / 1.244 GB, free: 6.129 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.477e-06/0.347, allocations: 4.375 kB / 1.244 GB, free: 6.125 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001928/0.3472, allocations: 49.8 kB / 1.244 GB, free: 6.07 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.926e-06/0.3472, allocations: 0 / 1.244 GB, free: 6.07 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.028e-05/0.3472, allocations: 4 kB / 1.244 GB, free: 6.066 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.659e-06/0.3472, allocations: 0 / 1.244 GB, free: 6.066 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001803/0.3474, allocations: 35.95 kB / 1.245 GB, free: 6.031 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003857/0.3478, allocations: 256.9 kB / 1.245 GB, free: 5.73 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001488/0.348, allocations: 34.56 kB / 1.245 GB, free: 5.688 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.015e-05/0.3481, allocations: 20.89 kB / 1.245 GB, free: 5.664 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001683/0.3482, allocations: 85.05 kB / 1.245 GB, free: 5.562 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.881e-05/0.3483, allocations: 38.56 kB / 1.245 GB, free: 5.516 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=2): time 1.112e-06/0.3483, allocations: 0 / 1.245 GB, free: 5.516 MB / 0.9669 GB Notification: Performance of matching and sorting (n=2): time 0.0003729/0.3487, allocations: 85.53 kB / 1.245 GB, free: 5.426 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.191e-05/0.3487, allocations: 51.41 kB / 1.245 GB, free: 5.363 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.227e-05/0.3488, allocations: 105.8 kB / 1.245 GB, free: 5.25 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.667e-05/0.3488, allocations: 29.83 kB / 1.245 GB, free: 5.215 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 5.463e-05/0.3489, allocations: 84.14 kB / 1.245 GB, free: 5.129 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 1.916e-05/0.3489, allocations: 7.953 kB / 1.245 GB, free: 5.121 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.917e-05/0.349, allocations: 9.719 kB / 1.245 GB, free: 5.105 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001522/0.3491, allocations: 326.8 kB / 1.246 GB, free: 4.777 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.249e-05/0.3492, allocations: 11.98 kB / 1.246 GB, free: 4.766 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.582e-05/0.3493, allocations: 15.98 kB / 1.246 GB, free: 4.75 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001578/0.3495, allocations: 44.88 kB / 1.246 GB, free: 4.703 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.973e-06/0.3495, allocations: 0 / 1.246 GB, free: 4.703 MB / 0.9669 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001971/0.3497, allocations: 65.61 kB / 1.246 GB, free: 4.633 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.466e-05/0.3497, allocations: 4 kB / 1.246 GB, free: 4.629 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.3497, allocations: 0 / 1.246 GB, free: 4.629 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.297e-05/0.3497, allocations: 4.031 kB / 1.246 GB, free: 4.625 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.397e-05/0.3498, allocations: 11.98 kB / 1.246 GB, free: 4.613 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.681e-06/0.3498, allocations: 3.938 kB / 1.246 GB, free: 4.609 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.816e-05/0.3499, allocations: 11.92 kB / 1.246 GB, free: 4.598 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.19e-06/0.3499, allocations: 0 / 1.246 GB, free: 4.598 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 0.0001037/0.35, allocations: 117.8 kB / 1.246 GB, free: 4.473 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.198e-05/0.35, allocations: 0 / 1.246 GB, free: 4.473 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002342/0.3503, allocations: 80.72 kB / 1.246 GB, free: 4.391 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.023e-06/0.3503, allocations: 0 / 1.246 GB, free: 4.391 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/0.3503, allocations: 0 / 1.246 GB, free: 4.391 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.55e-06/0.3503, allocations: 3.984 kB / 1.246 GB, free: 4.387 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001738/0.3505, allocations: 157.6 kB / 1.246 GB, free: 4.184 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.3505, allocations: 256 / 1.246 GB, free: 4.184 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.027e-05/0.3506, allocations: 15.98 kB / 1.246 GB, free: 4.168 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.372e-06/0.3506, allocations: 0 / 1.246 GB, free: 4.168 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.943e-06/0.3506, allocations: 0 / 1.246 GB, free: 4.168 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.827e-06/0.3506, allocations: 0 / 1.246 GB, free: 4.168 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.3506, allocations: 7.969 kB / 1.246 GB, free: 4.16 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002489/0.3508, allocations: 167.4 kB / 1.246 GB, free: 3.98 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.319e-05/0.3509, allocations: 85.09 kB / 1.246 GB, free: 3.879 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.218e-05/0.3509, allocations: 0 / 1.246 GB, free: 3.879 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.537e-05/0.351, allocations: 7.984 kB / 1.246 GB, free: 3.871 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.108e-05/0.351, allocations: 7.969 kB / 1.246 GB, free: 3.863 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.996e-06/0.351, allocations: 0 / 1.246 GB, free: 3.863 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 4.548e-05/0.3511, allocations: 87.27 kB / 1.246 GB, free: 3.777 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3511, allocations: 0 / 1.246 GB, free: 3.777 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002158/0.3513, allocations: 8 kB / 1.246 GB, free: 3.77 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.0005883/0.3519, allocations: 0.6973 MB / 1.247 GB, free: 3.043 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002115/0.3521, allocations: 39.89 kB / 1.247 GB, free: 3.004 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.3521, allocations: 0 / 1.247 GB, free: 3.004 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 8.736e-05/0.3522, allocations: 19.98 kB / 1.247 GB, free: 2.984 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002953/0.3525, allocations: 9.562 kB / 1.247 GB, free: 2.977 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003824/0.3529, allocations: 135 kB / 1.247 GB, free: 2.805 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002785/0.3532, allocations: 0.6807 MB / 1.248 GB, free: 2.098 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 2.313e-05/0.3532, allocations: 0 / 1.248 GB, free: 2.098 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.443e-05/0.3533, allocations: 11.44 kB / 1.248 GB, free: 2.086 MB / 0.9669 GB Notification: Performance of SimCode: time 2.51e-07/0.3533, allocations: 0 / 1.248 GB, free: 2.086 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03531/0.3886, allocations: 1.429 MB / 1.249 GB, free: 0.7461 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.04/8.429, allocations: 9.156 kB / 1.249 GB, free: 0.7383 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 & /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=400 --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