Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Utilities_Math_Examples_SmoothBlocks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.SmoothBlocks,fileNamePrefix="Buildings_10_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.008418/0.008418, allocations: 103 kB / 15.73 MB, free: 6.035 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.002025/0.002025, allocations: 196.9 kB / 16.68 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.4/1.4, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.444/2.444, allocations: 437 MB / 0.7105 GB, free: 4.395 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001375/0.001375, allocations: 68.11 kB / 1.018 GB, free: 9.949 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7673/0.7687, allocations: 151.6 MB / 1.166 GB, free: 3.832 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothBlocks): time 0.00248/0.7712, allocations: 1.781 MB / 1.168 GB, free: 2.039 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.0009156/0.7721, allocations: 0.6554 MB / 1.169 GB, free: 1.375 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.018e-05/0.7722, allocations: 4 kB / 1.169 GB, free: 1.371 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 3.235e-05/0.7722, allocations: 7.875 kB / 1.169 GB, free: 1.363 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 6.214e-05/0.7723, allocations: 19.78 kB / 1.169 GB, free: 1.344 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.000476/0.7728, allocations: 163.5 kB / 1.169 GB, free: 1.188 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0001464/0.7729, allocations: 139.6 kB / 1.169 GB, free: 1.051 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001168/0.773, allocations: 41.11 kB / 1.169 GB, free: 1.012 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001025/0.7732, allocations: 63.77 kB / 1.169 GB, free: 0.9492 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 7.921e-05/0.7732, allocations: 47.77 kB / 1.169 GB, free: 0.9023 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 2.581e-05/0.7733, allocations: 8 kB / 1.169 GB, free: 0.8945 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001014/0.7734, allocations: 43.97 kB / 1.169 GB, free: 0.8516 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 3.577e-05/0.7734, allocations: 35.89 kB / 1.169 GB, free: 0.8164 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 4.894e-05/0.7735, allocations: 51.72 kB / 1.169 GB, free: 0.7656 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0001762/0.7737, allocations: 145.8 kB / 1.169 GB, free: 0.625 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.7737, allocations: 8 kB / 1.169 GB, free: 0.6172 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.102e-06/0.7737, allocations: 0 / 1.169 GB, free: 0.6172 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 7.424e-06/0.7737, allocations: 0 / 1.169 GB, free: 0.6172 MB / 0.8887 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.000506/0.7742, allocations: 438.9 kB / 1.17 GB, free: 144 kB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.133e-05/0.7742, allocations: 8.922 kB / 1.17 GB, free: 136 kB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.129e-05/0.7743, allocations: 46.67 kB / 1.17 GB, free: 80 kB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007836/0.7751, allocations: 116.6 kB / 1.17 GB, free: 15.96 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000106/0.7752, allocations: 184.1 kB / 1.17 GB, free: 15.75 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.816e-05/0.7753, allocations: 59.97 kB / 1.17 GB, free: 15.68 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.885e-05/0.7753, allocations: 12.31 kB / 1.17 GB, free: 15.66 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004506/0.7758, allocations: 173.5 kB / 1.17 GB, free: 15.49 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.136e-06/0.7758, allocations: 3.938 kB / 1.17 GB, free: 15.48 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.903e-05/0.7758, allocations: 4 kB / 1.17 GB, free: 15.48 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.288e-06/0.7758, allocations: 0 / 1.17 GB, free: 15.48 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005336/0.7763, allocations: 163.8 kB / 1.17 GB, free: 15.32 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009311/0.7773, allocations: 493.4 kB / 1.171 GB, free: 14.79 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008915/0.7782, allocations: 218.3 kB / 1.171 GB, free: 14.57 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002658/0.7785, allocations: 80.91 kB / 1.171 GB, free: 14.48 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 2.111e-05/0.7785, allocations: 4 kB / 1.171 GB, free: 14.48 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.099e-05/0.7785, allocations: 34.56 kB / 1.171 GB, free: 14.44 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=6): time 1.202e-06/0.7785, allocations: 0 / 1.171 GB, free: 14.44 MB / 0.9044 GB Notification: Performance of matching and sorting (n=6): time 0.0008971/0.7794, allocations: 269.4 kB / 1.171 GB, free: 14.17 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.039e-05/0.7795, allocations: 51.41 kB / 1.172 GB, free: 14.11 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.009e-05/0.7796, allocations: 136.1 kB / 1.172 GB, free: 13.96 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.059e-05/0.7796, allocations: 25.7 kB / 1.172 GB, free: 13.93 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 5.72e-05/0.7796, allocations: 112.1 kB / 1.172 GB, free: 13.82 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 2.236e-05/0.7797, allocations: 23.7 kB / 1.172 GB, free: 13.79 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.154e-05/0.7797, allocations: 29.7 kB / 1.172 GB, free: 13.76 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 8.286e-05/0.7798, allocations: 314.8 kB / 1.172 GB, free: 13.44 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002747/0.7801, allocations: 75.91 kB / 1.172 GB, free: 13.37 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002681/0.7804, allocations: 94.5 kB / 1.172 GB, free: 13.27 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000512/0.7809, allocations: 166.6 kB / 1.172 GB, free: 13.09 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.7809, allocations: 0 / 1.172 GB, free: 13.09 MB / 0.9044 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0005813/0.7815, allocations: 197.4 kB / 1.173 GB, free: 12.89 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.322e-05/0.7815, allocations: 8 kB / 1.173 GB, free: 12.89 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.7815, allocations: 7.984 kB / 1.173 GB, free: 12.88 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.034e-05/0.7815, allocations: 4 kB / 1.173 GB, free: 12.88 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002373/0.7818, allocations: 39.95 kB / 1.173 GB, free: 12.84 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.813e-06/0.7818, allocations: 3.938 kB / 1.173 GB, free: 12.83 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001681/0.782, allocations: 27.84 kB / 1.173 GB, free: 12.8 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.45e-05/0.782, allocations: 4 kB / 1.173 GB, free: 12.8 MB / 0.9044 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 8.246e-05/0.7821, allocations: 121.8 kB / 1.173 GB, free: 12.67 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.886e-05/0.7821, allocations: 11.91 kB / 1.173 GB, free: 12.66 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006145/0.7827, allocations: 198.2 kB / 1.173 GB, free: 12.46 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.297e-06/0.7828, allocations: 4 kB / 1.173 GB, free: 12.46 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.115e-06/0.7828, allocations: 4 kB / 1.173 GB, free: 12.45 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.244e-06/0.7828, allocations: 0 / 1.173 GB, free: 12.45 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002215/0.783, allocations: 234.4 kB / 1.173 GB, free: 12.17 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.123e-06/0.783, allocations: 3.938 kB / 1.173 GB, free: 12.17 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002114/0.7832, allocations: 35.89 kB / 1.173 GB, free: 12.13 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.724e-06/0.7832, allocations: 0 / 1.173 GB, free: 12.13 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.299e-05/0.7833, allocations: 3.938 kB / 1.173 GB, free: 12.13 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.7833, allocations: 0 / 1.173 GB, free: 12.13 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.7833, allocations: 4 kB / 1.173 GB, free: 12.12 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005932/0.7839, allocations: 291.3 kB / 1.174 GB, free: 11.82 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 3.561e-05/0.7839, allocations: 85.02 kB / 1.174 GB, free: 11.72 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.137e-05/0.7839, allocations: 3.938 kB / 1.174 GB, free: 11.72 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002699/0.7842, allocations: 35.94 kB / 1.174 GB, free: 11.68 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.915e-05/0.7842, allocations: 11.98 kB / 1.174 GB, free: 11.67 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.947e-05/0.7843, allocations: 7.984 kB / 1.174 GB, free: 11.66 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 5.767e-05/0.7843, allocations: 105.5 kB / 1.174 GB, free: 11.56 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.212e-06/0.7843, allocations: 0 / 1.174 GB, free: 11.56 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002422/0.7846, allocations: 27.88 kB / 1.174 GB, free: 11.54 MB / 0.9044 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.0007931/0.7854, allocations: 0.8177 MB / 1.175 GB, free: 10.69 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0005521/0.7859, allocations: 163.8 kB / 1.175 GB, free: 10.53 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.786, allocations: 0 / 1.175 GB, free: 10.53 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0002635/0.7862, allocations: 88.03 kB / 1.175 GB, free: 10.45 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000258/0.7865, allocations: 4 kB / 1.175 GB, free: 10.44 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002528/0.789, allocations: 1.831 MB / 1.177 GB, free: 8.516 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001918/0.7892, allocations: 0.6963 MB / 1.177 GB, free: 7.793 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 8.027e-05/0.7893, allocations: 19.98 kB / 1.177 GB, free: 7.773 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.119e-05/0.7894, allocations: 31.42 kB / 1.177 GB, free: 7.742 MB / 0.9044 GB Notification: Performance of SimCode: time 2.5e-07/0.7894, allocations: 3.938 kB / 1.177 GB, free: 7.738 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1578/0.9472, allocations: 2.749 MB / 1.18 GB, free: 5.078 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.921/8.868, allocations: 4.25 kB / 1.18 GB, free: 5.078 MB / 0.9044 GB (rm -f Buildings_10_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Examples.SmoothBlocks.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Utilities.Math.Examples.SmoothBlocks_res.mat --tempDir=temp_Buildings_10_Buildings_Utilities_Math_Examples_SmoothBlocks_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Utilities_Math_Examples_SmoothBlocks.fmu > Buildings_10_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Examples.SmoothBlocks_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Examples_SmoothBlocks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Examples.SmoothBlocks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches