Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks.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.SmoothBlocks,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_SmoothBlocks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.SmoothBlocks,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_SmoothBlocks",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.0076/0.0076, allocations: 102.1 kB / 15.73 MB, free: 6.059 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.001873/0.001873, allocations: 193 kB / 16.67 MB, free: 5.969 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.454/1.454, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.662/2.662, allocations: 472.7 MB / 0.7453 GB, free: 444 kB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001542/0.001543, allocations: 67.89 kB / 1.069 GB, free: 10.07 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8343/0.8359, allocations: 159.9 MB / 1.225 GB, free: 13.45 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothBlocks): time 0.003733/0.8396, allocations: 1.776 MB / 1.227 GB, free: 11.68 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.001212/0.8409, allocations: 0.6556 MB / 1.228 GB, free: 11.02 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.995e-05/0.841, allocations: 4 kB / 1.228 GB, free: 11.01 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 5.814e-05/0.8411, allocations: 11.86 kB / 1.228 GB, free: 11 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 8.198e-05/0.8412, allocations: 15.8 kB / 1.228 GB, free: 10.98 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006983/0.8419, allocations: 171.2 kB / 1.228 GB, free: 10.82 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0002296/0.8421, allocations: 131.5 kB / 1.228 GB, free: 10.69 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001793/0.8423, allocations: 57 kB / 1.228 GB, free: 10.64 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001708/0.8425, allocations: 55.83 kB / 1.228 GB, free: 10.58 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001039/0.8426, allocations: 43.78 kB / 1.228 GB, free: 10.54 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 3.148e-05/0.8427, allocations: 12 kB / 1.228 GB, free: 10.53 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001226/0.8428, allocations: 51.95 kB / 1.228 GB, free: 10.48 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 4.468e-05/0.8428, allocations: 27.91 kB / 1.228 GB, free: 10.45 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 6.502e-05/0.8429, allocations: 63.64 kB / 1.228 GB, free: 10.39 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0002356/0.8432, allocations: 143.1 kB / 1.228 GB, free: 10.25 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.8432, allocations: 4 kB / 1.228 GB, free: 10.25 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.583e-06/0.8432, allocations: 0 / 1.228 GB, free: 10.25 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 5.3e-06/0.8432, allocations: 0 / 1.228 GB, free: 10.25 MB / 0.9512 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0006149/0.8438, allocations: 442.7 kB / 1.229 GB, free: 9.766 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 5.046e-05/0.8439, allocations: 16.03 kB / 1.229 GB, free: 9.75 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.893e-05/0.8439, allocations: 38.73 kB / 1.229 GB, free: 9.703 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008825/0.8448, allocations: 108.7 kB / 1.229 GB, free: 9.598 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001651/0.845, allocations: 188.2 kB / 1.229 GB, free: 9.375 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000111/0.8451, allocations: 63.97 kB / 1.229 GB, free: 9.301 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.649e-05/0.8451, allocations: 12.31 kB / 1.229 GB, free: 9.289 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005465/0.8457, allocations: 170.7 kB / 1.229 GB, free: 9.117 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.015e-06/0.8457, allocations: 0 / 1.229 GB, free: 9.117 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.179e-05/0.8457, allocations: 4 kB / 1.229 GB, free: 9.113 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.498e-06/0.8458, allocations: 0 / 1.229 GB, free: 9.113 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006318/0.8464, allocations: 163.8 kB / 1.229 GB, free: 8.953 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001154/0.8476, allocations: 478.1 kB / 1.23 GB, free: 8.434 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001053/0.8486, allocations: 218.3 kB / 1.23 GB, free: 8.211 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003343/0.849, allocations: 88.83 kB / 1.23 GB, free: 8.121 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.593e-05/0.849, allocations: 0 / 1.23 GB, free: 8.121 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.116e-05/0.8491, allocations: 38.56 kB / 1.23 GB, free: 8.074 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=6): time 1.052e-06/0.8491, allocations: 0 / 1.23 GB, free: 8.074 MB / 0.9512 GB Notification: Performance of matching and sorting (n=6): time 0.001089/0.8502, allocations: 265.5 kB / 1.231 GB, free: 7.809 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.431e-05/0.8502, allocations: 55.41 kB / 1.231 GB, free: 7.742 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001162/0.8503, allocations: 143.8 kB / 1.231 GB, free: 7.594 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.583e-05/0.8504, allocations: 25.7 kB / 1.231 GB, free: 7.562 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 5.979e-05/0.8504, allocations: 108.3 kB / 1.231 GB, free: 7.453 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 3.429e-05/0.8505, allocations: 23.8 kB / 1.231 GB, free: 7.43 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.699e-05/0.8505, allocations: 21.7 kB / 1.231 GB, free: 7.402 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.000106/0.8506, allocations: 322.8 kB / 1.231 GB, free: 7.078 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003124/0.851, allocations: 75.86 kB / 1.231 GB, free: 7.004 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003274/0.8513, allocations: 94.48 kB / 1.231 GB, free: 6.902 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006115/0.8519, allocations: 166.4 kB / 1.232 GB, free: 6.73 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.8519, allocations: 0 / 1.232 GB, free: 6.73 MB / 0.9512 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0007256/0.8527, allocations: 205.5 kB / 1.232 GB, free: 6.523 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.671e-05/0.8527, allocations: 4 kB / 1.232 GB, free: 6.52 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.536e-06/0.8527, allocations: 7.938 kB / 1.232 GB, free: 6.512 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.328e-05/0.8527, allocations: 0 / 1.232 GB, free: 6.512 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002833/0.853, allocations: 39.89 kB / 1.232 GB, free: 6.473 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.584e-06/0.853, allocations: 4.141 kB / 1.232 GB, free: 6.469 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002042/0.8532, allocations: 27.95 kB / 1.232 GB, free: 6.441 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.609e-05/0.8533, allocations: 4 kB / 1.232 GB, free: 6.438 MB / 0.9512 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (8): * Single equations (assignments): 8 * 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.0001013/0.8534, allocations: 118.4 kB / 1.232 GB, free: 6.312 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.815e-05/0.8534, allocations: 11.91 kB / 1.232 GB, free: 6.301 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007737/0.8542, allocations: 218 kB / 1.232 GB, free: 6.078 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.165e-06/0.8542, allocations: 0 / 1.232 GB, free: 6.078 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.8542, allocations: 4 kB / 1.232 GB, free: 6.074 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/0.8542, allocations: 3.984 kB / 1.232 GB, free: 6.07 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002559/0.8545, allocations: 222.5 kB / 1.232 GB, free: 5.805 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.8545, allocations: 0 / 1.232 GB, free: 5.805 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000235/0.8548, allocations: 31.95 kB / 1.232 GB, free: 5.773 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.8548, allocations: 4 kB / 1.232 GB, free: 5.77 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.926e-05/0.8548, allocations: 12.11 kB / 1.232 GB, free: 5.758 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.785e-06/0.8548, allocations: 4 kB / 1.232 GB, free: 5.754 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.8548, allocations: 0 / 1.232 GB, free: 5.754 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007298/0.8555, allocations: 287.3 kB / 1.233 GB, free: 5.457 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 4.176e-05/0.8556, allocations: 85.06 kB / 1.233 GB, free: 5.355 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.477e-05/0.8556, allocations: 7.875 kB / 1.233 GB, free: 5.348 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003192/0.8559, allocations: 31.95 kB / 1.233 GB, free: 5.316 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.472e-05/0.856, allocations: 7.984 kB / 1.233 GB, free: 5.309 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.036e-05/0.856, allocations: 4 kB / 1.233 GB, free: 5.305 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 6.867e-05/0.8561, allocations: 109.5 kB / 1.233 GB, free: 5.199 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8561, allocations: 4 kB / 1.233 GB, free: 5.195 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.000275/0.8564, allocations: 19.95 kB / 1.233 GB, free: 5.176 MB / 0.9512 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 (6): * Single equations (assignments): 6 * 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.001024/0.8574, allocations: 0.8177 MB / 1.234 GB, free: 4.332 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0006809/0.8581, allocations: 163.8 kB / 1.234 GB, free: 4.172 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.8581, allocations: 8.062 kB / 1.234 GB, free: 4.164 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0003316/0.8585, allocations: 87.84 kB / 1.234 GB, free: 4.078 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003328/0.8588, allocations: 13.88 kB / 1.234 GB, free: 4.066 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003136/0.862, allocations: 1.831 MB / 1.236 GB, free: 2.141 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002913/0.8623, allocations: 0.7002 MB / 1.236 GB, free: 1.414 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.0001037/0.8624, allocations: 19.98 kB / 1.236 GB, free: 1.395 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.639e-05/0.8625, allocations: 35.41 kB / 1.237 GB, free: 1.359 MB / 0.9512 GB Notification: Performance of SimCode: time 2.21e-07/0.8625, allocations: 0 / 1.237 GB, free: 1.359 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01965/0.8821, allocations: 2.756 MB / 1.239 GB, free: 14.69 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.742/8.625, allocations: 5.5 kB / 1.239 GB, free: 14.68 MB / 0.9669 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Utilities_Math_Examples_SmoothBlocks.fmu > Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_SmoothBlocks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches