Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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.SmoothBlocks,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Examples_SmoothBlocks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.SmoothBlocks,fileNamePrefix="Buildings_9_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.001271/0.001271, allocations: 107.4 kB / 15.22 MB, free: 0.6562 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.001316/0.001316, allocations: 198.2 kB / 16.14 MB, free: 6.641 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.308/1.308, allocations: 222.9 MB / 239.8 MB, free: 4.594 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.285/2.285, allocations: 390.2 MB / 0.6643 GB, free: 0.6055 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001196/0.001196, allocations: 67.89 kB / 0.812 GB, free: 14.79 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4909/0.4922, allocations: 140.4 MB / 0.949 GB, free: 9.156 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothBlocks): time 0.002199/0.4944, allocations: 1.818 MB / 0.9508 GB, free: 7.73 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0007557/0.4952, allocations: 0.6667 MB / 0.9515 GB, free: 7.203 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.538e-05/0.4952, allocations: 1.281 kB / 0.9515 GB, free: 7.203 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.762e-05/0.4953, allocations: 3.938 kB / 0.9515 GB, free: 7.199 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.487e-05/0.4953, allocations: 14.58 kB / 0.9515 GB, free: 7.188 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003884/0.4957, allocations: 162.6 kB / 0.9516 GB, free: 7.082 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001032/0.4958, allocations: 116.4 kB / 0.9517 GB, free: 7.02 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001091/0.4959, allocations: 49.12 kB / 0.9518 GB, free: 6.988 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.35e-05/0.496, allocations: 53.33 kB / 0.9518 GB, free: 6.961 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.87e-05/0.4961, allocations: 48.39 kB / 0.9519 GB, free: 6.926 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.212e-05/0.4961, allocations: 5.906 kB / 0.9519 GB, free: 6.926 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 8.79e-05/0.4962, allocations: 46.55 kB / 0.9519 GB, free: 6.906 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.657e-05/0.4963, allocations: 29 kB / 0.952 GB, free: 6.883 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.573e-05/0.4963, allocations: 60.92 kB / 0.952 GB, free: 6.836 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000147/0.4965, allocations: 132.4 kB / 0.9522 GB, free: 6.746 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.317e-06/0.4965, allocations: 1.219 kB / 0.9522 GB, free: 6.746 MB / 0.7169 GB Notification: Performance of FrontEnd: time 8.72e-07/0.4965, allocations: 0 / 0.9522 GB, free: 6.746 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.506e-06/0.4965, allocations: 0 / 0.9522 GB, free: 6.746 MB / 0.7169 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.0004267/0.4969, allocations: 442.6 kB / 0.9526 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.206e-05/0.4969, allocations: 8.969 kB / 0.9526 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.371e-05/0.497, allocations: 50.14 kB / 0.9526 GB, free: 6.258 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007681/0.4978, allocations: 108.1 kB / 0.9527 GB, free: 6.207 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.422e-05/0.4978, allocations: 186.4 kB / 0.9529 GB, free: 5.992 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.612e-05/0.4979, allocations: 62.92 kB / 0.953 GB, free: 5.926 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.831e-05/0.4979, allocations: 9.688 kB / 0.953 GB, free: 5.922 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000443/0.4984, allocations: 169.1 kB / 0.9531 GB, free: 5.816 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.503e-06/0.4984, allocations: 0 / 0.9531 GB, free: 5.816 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.076e-05/0.4984, allocations: 8.984 kB / 0.9532 GB, free: 5.809 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.859e-06/0.4984, allocations: 2.094 kB / 0.9532 GB, free: 5.809 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005394/0.499, allocations: 161.4 kB / 0.9533 GB, free: 5.73 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008812/0.4999, allocations: 489.1 kB / 0.9538 GB, free: 5.289 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009065/0.5008, allocations: 219.4 kB / 0.954 GB, free: 5.164 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002617/0.5011, allocations: 80.12 kB / 0.9541 GB, free: 5.121 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.684e-05/0.5011, allocations: 1.219 kB / 0.9541 GB, free: 5.121 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.451e-05/0.5011, allocations: 36.12 kB / 0.9541 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=6): time 9.42e-07/0.5011, allocations: 0 / 0.9541 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6): time 0.0008962/0.502, allocations: 267.8 kB / 0.9544 GB, free: 4.926 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.579e-05/0.502, allocations: 55.34 kB / 0.9544 GB, free: 4.859 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.201e-05/0.5021, allocations: 136.1 kB / 0.9545 GB, free: 4.742 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.848e-05/0.5021, allocations: 35.03 kB / 0.9546 GB, free: 4.703 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.361e-05/0.5022, allocations: 109.9 kB / 0.9547 GB, free: 4.594 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.785e-05/0.5022, allocations: 17.08 kB / 0.9547 GB, free: 4.578 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.663e-05/0.5022, allocations: 28.98 kB / 0.9547 GB, free: 4.551 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.833e-05/0.5023, allocations: 321.4 kB / 0.955 GB, free: 4.23 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002787/0.5026, allocations: 73.02 kB / 0.9551 GB, free: 4.195 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002719/0.5028, allocations: 90.56 kB / 0.9552 GB, free: 4.137 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005111/0.5034, allocations: 166.7 kB / 0.9553 GB, free: 4.035 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.5034, allocations: 2.531 kB / 0.9553 GB, free: 4.035 MB / 0.7169 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0005723/0.5039, allocations: 200.2 kB / 0.9555 GB, free: 3.918 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.084e-05/0.504, allocations: 5.625 kB / 0.9555 GB, free: 3.918 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.409e-06/0.504, allocations: 5.062 kB / 0.9555 GB, free: 3.914 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.092e-05/0.504, allocations: 1.156 kB / 0.9555 GB, free: 3.914 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002353/0.5042, allocations: 42.48 kB / 0.9556 GB, free: 3.895 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.29e-06/0.5042, allocations: 1.219 kB / 0.9556 GB, free: 3.895 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001758/0.5044, allocations: 28.75 kB / 0.9556 GB, free: 3.879 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.404e-05/0.5044, allocations: 6.234 kB / 0.9556 GB, free: 3.875 MB / 0.7169 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 6.122e-05/0.5045, allocations: 114.5 kB / 0.9557 GB, free: 3.758 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.084e-05/0.5046, allocations: 8.875 kB / 0.9557 GB, free: 3.754 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006268/0.5052, allocations: 214.3 kB / 0.9559 GB, free: 3.617 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.714e-06/0.5052, allocations: 3.969 kB / 0.9559 GB, free: 3.617 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.5052, allocations: 0 / 0.9559 GB, free: 3.617 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.5052, allocations: 3.984 kB / 0.9559 GB, free: 3.613 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001655/0.5054, allocations: 240.3 kB / 0.9562 GB, free: 3.355 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.5054, allocations: 4.938 kB / 0.9562 GB, free: 3.352 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002167/0.5056, allocations: 30.89 kB / 0.9562 GB, free: 3.34 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.5056, allocations: 1.094 kB / 0.9562 GB, free: 3.34 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.408e-05/0.5056, allocations: 5.125 kB / 0.9562 GB, free: 3.336 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.5056, allocations: 0 / 0.9562 GB, free: 3.336 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.5056, allocations: 1.156 kB / 0.9562 GB, free: 3.336 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005819/0.5062, allocations: 289.6 kB / 0.9565 GB, free: 3.117 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.798e-05/0.5063, allocations: 84.2 kB / 0.9566 GB, free: 3.02 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.212e-05/0.5063, allocations: 9.328 kB / 0.9566 GB, free: 3.012 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002775/0.5066, allocations: 28.11 kB / 0.9566 GB, free: 3 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.834e-05/0.5066, allocations: 7.719 kB / 0.9566 GB, free: 2.996 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.725e-05/0.5066, allocations: 11.11 kB / 0.9566 GB, free: 2.988 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.983e-05/0.5067, allocations: 108.6 kB / 0.9567 GB, free: 2.898 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5067, allocations: 0 / 0.9567 GB, free: 2.898 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002346/0.5069, allocations: 23 kB / 0.9568 GB, free: 2.895 MB / 0.7169 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.0006996/0.5076, allocations: 0.8188 MB / 0.9576 GB, free: 2.145 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0005362/0.5082, allocations: 172.5 kB / 0.9577 GB, free: 2.059 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.5082, allocations: 2.219 kB / 0.9577 GB, free: 2.059 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002569/0.5084, allocations: 76.86 kB / 0.9578 GB, free: 2.023 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002574/0.5087, allocations: 8.125 kB / 0.9578 GB, free: 2.02 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002267/0.511, allocations: 1.868 MB / 0.9596 GB, free: 432 kB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001686/0.5112, allocations: 0.6993 MB / 0.9603 GB, free: 15.71 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 9.425e-05/0.5113, allocations: 15.16 kB / 0.9603 GB, free: 15.71 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.645e-05/0.5113, allocations: 26.2 kB / 0.9603 GB, free: 15.69 MB / 0.7325 GB Notification: Performance of SimCode: time 2.1e-07/0.5113, allocations: 1.062 kB / 0.9604 GB, free: 15.69 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.035/2.547, allocations: 2.516 MB / 0.9628 GB, free: 14.41 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002616/2.547, allocations: 197.2 kB / 0.963 GB, free: 14.16 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.152/4.699, allocations: 3.938 kB / 0.963 GB, free: 14.15 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Examples_SmoothBlocks_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_Math_Examples_SmoothBlocks.fmu > Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_SmoothBlocks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches