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.1-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-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.0007751/0.0007749, allocations: 86.72 kB / 15.06 MB, free: 1.09 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.001201/0.001202, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.474/1.474, allocations: 223.3 MB / 240 MB, free: 5.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.512/2.512, allocations: 390.4 MB / 0.6655 GB, free: 2.918 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003297/0.0003298, allocations: 12 kB / 0.8149 GB, free: 14.09 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8997/0.9, allocations: 142.3 MB / 0.9539 GB, free: 8.055 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothBlocks): time 0.001833/0.9019, allocations: 1.442 MB / 0.9553 GB, free: 6.918 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009484/0.9029, allocations: 0.6119 MB / 0.9559 GB, free: 6.434 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.687e-05/0.903, allocations: 5.281 kB / 0.9559 GB, free: 6.43 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.909e-05/0.903, allocations: 7.922 kB / 0.9559 GB, free: 6.422 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.174e-05/0.9031, allocations: 15.14 kB / 0.9559 GB, free: 6.41 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005018/0.9036, allocations: 154.5 kB / 0.956 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001468/0.9037, allocations: 100.6 kB / 0.9561 GB, free: 6.254 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001375/0.9039, allocations: 31.78 kB / 0.9562 GB, free: 6.238 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001084/0.904, allocations: 47.38 kB / 0.9562 GB, free: 6.215 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.885e-05/0.9041, allocations: 43.05 kB / 0.9562 GB, free: 6.184 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.919e-05/0.9041, allocations: 4.031 kB / 0.9563 GB, free: 6.184 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 9.704e-05/0.9042, allocations: 41.41 kB / 0.9563 GB, free: 6.164 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.874e-05/0.9042, allocations: 25.55 kB / 0.9563 GB, free: 6.145 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.002e-05/0.9043, allocations: 40.77 kB / 0.9564 GB, free: 6.105 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001359/0.9044, allocations: 91.42 kB / 0.9564 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.342e-06/0.9044, allocations: 0 / 0.9564 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.064e-06/0.9044, allocations: 0 / 0.9564 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.807e-06/0.9044, allocations: 0 / 0.9564 GB, free: 6.047 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.0005213/0.905, allocations: 426.6 kB / 0.9568 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.058e-05/0.905, allocations: 6.406 kB / 0.9569 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.352e-05/0.9051, allocations: 41.08 kB / 0.9569 GB, free: 5.582 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007838/0.9058, allocations: 151.1 kB / 0.957 GB, free: 5.516 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001357/0.906, allocations: 181.5 kB / 0.9572 GB, free: 5.305 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001014/0.9061, allocations: 67.61 kB / 0.9573 GB, free: 5.234 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.311e-05/0.9061, allocations: 9.5 kB / 0.9573 GB, free: 5.23 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005139/0.9067, allocations: 189.5 kB / 0.9575 GB, free: 5.121 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.218e-06/0.9067, allocations: 5.266 kB / 0.9575 GB, free: 5.117 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.861e-05/0.9067, allocations: 0 / 0.9575 GB, free: 5.117 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.791e-06/0.9067, allocations: 2.094 kB / 0.9575 GB, free: 5.117 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005916/0.9073, allocations: 191.7 kB / 0.9577 GB, free: 5.039 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001034/0.9083, allocations: 0.5 MB / 0.9581 GB, free: 4.598 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009282/0.9093, allocations: 268.4 kB / 0.9584 GB, free: 4.469 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002999/0.9096, allocations: 103.5 kB / 0.9585 GB, free: 4.418 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.856e-05/0.9096, allocations: 0 / 0.9585 GB, free: 4.418 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.78e-05/0.9097, allocations: 36.34 kB / 0.9585 GB, free: 4.375 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=6): time 8.51e-07/0.9097, allocations: 0 / 0.9585 GB, free: 4.375 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6): time 0.0009845/0.9107, allocations: 314 kB / 0.9588 GB, free: 4.223 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.526e-05/0.9107, allocations: 56.73 kB / 0.9589 GB, free: 4.156 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001071/0.9108, allocations: 142.5 kB / 0.959 GB, free: 4.031 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.051e-05/0.9109, allocations: 27.08 kB / 0.959 GB, free: 4 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 6.987e-05/0.9109, allocations: 113.6 kB / 0.9592 GB, free: 3.887 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.458e-05/0.911, allocations: 18.55 kB / 0.9592 GB, free: 3.871 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.236e-06/0.911, allocations: 0 / 0.9592 GB, free: 3.871 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 8.859e-05/0.9111, allocations: 325.6 kB / 0.9595 GB, free: 3.547 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002759/0.9114, allocations: 92.17 kB / 0.9596 GB, free: 3.508 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002769/0.9116, allocations: 109.5 kB / 0.9597 GB, free: 3.445 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002666/0.9119, allocations: 92.59 kB / 0.9598 GB, free: 3.406 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.9119, allocations: 0 / 0.9598 GB, free: 3.406 MB / 0.7169 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.000639/0.9126, allocations: 241.6 kB / 0.96 GB, free: 3.281 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.365e-05/0.9126, allocations: 7.781 kB / 0.96 GB, free: 3.281 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/0.9126, allocations: 0 / 0.96 GB, free: 3.281 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.684e-05/0.9126, allocations: 9.297 kB / 0.96 GB, free: 3.273 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000263/0.9129, allocations: 42.23 kB / 0.9601 GB, free: 3.262 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.418e-06/0.9129, allocations: 9.828 kB / 0.9601 GB, free: 3.254 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001807/0.9131, allocations: 39.62 kB / 0.9601 GB, free: 3.234 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.842e-05/0.9131, allocations: 7.594 kB / 0.9601 GB, free: 3.23 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.504e-05/0.9132, allocations: 113.8 kB / 0.9602 GB, free: 3.113 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.685e-05/0.9133, allocations: 7.938 kB / 0.9602 GB, free: 3.109 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006804/0.914, allocations: 239.4 kB / 0.9605 GB, free: 2.98 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.35e-06/0.914, allocations: 3.984 kB / 0.9605 GB, free: 2.977 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.093e-06/0.914, allocations: 4.953 kB / 0.9605 GB, free: 2.973 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.967e-06/0.914, allocations: 0 / 0.9605 GB, free: 2.973 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002381/0.9142, allocations: 230.8 kB / 0.9607 GB, free: 2.727 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.9142, allocations: 3.938 kB / 0.9607 GB, free: 2.723 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002129/0.9145, allocations: 47.17 kB / 0.9607 GB, free: 2.703 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.428e-06/0.9145, allocations: 0.7188 kB / 0.9607 GB, free: 2.703 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.546e-05/0.9145, allocations: 8.828 kB / 0.9607 GB, free: 2.695 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.9145, allocations: 0.75 kB / 0.9607 GB, free: 2.695 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.407e-06/0.9145, allocations: 4.703 kB / 0.9607 GB, free: 2.691 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006707/0.9152, allocations: 317.4 kB / 0.961 GB, free: 2.477 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.96e-05/0.9152, allocations: 83.58 kB / 0.9611 GB, free: 2.379 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.52e-05/0.9153, allocations: 1.094 kB / 0.9611 GB, free: 2.379 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002801/0.9155, allocations: 48.45 kB / 0.9612 GB, free: 2.359 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.043e-05/0.9156, allocations: 9.969 kB / 0.9612 GB, free: 2.352 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.998e-05/0.9156, allocations: 8.234 kB / 0.9612 GB, free: 2.348 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 6.919e-05/0.9157, allocations: 104.1 kB / 0.9613 GB, free: 2.262 MB / 0.7169 GB Notification: Performance of sort global known variables: time 9.1e-08/0.9157, allocations: 3.938 kB / 0.9613 GB, free: 2.258 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002662/0.916, allocations: 27.09 kB / 0.9613 GB, free: 2.25 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008571/0.9168, allocations: 0.8489 MB / 0.9621 GB, free: 1.5 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0006246/0.9175, allocations: 204.3 kB / 0.9623 GB, free: 1.414 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.716e-06/0.9175, allocations: 3.938 kB / 0.9623 GB, free: 1.41 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.000309/0.9178, allocations: 102.3 kB / 0.9624 GB, free: 1.367 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003272/0.9181, allocations: 13.39 kB / 0.9625 GB, free: 1.359 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001888/0.92, allocations: 0.916 MB / 0.9634 GB, free: 0.7148 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001552/0.9202, allocations: 0.7005 MB / 0.964 GB, free: 8 kB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0001261/0.9203, allocations: 22.06 kB / 0.9641 GB, free: 15.99 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.21e-05/0.9204, allocations: 30.73 kB / 0.9641 GB, free: 15.96 MB / 0.7325 GB Notification: Performance of SimCode: time 8.42e-07/0.9204, allocations: 0 / 0.9641 GB, free: 15.96 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01474/0.9352, allocations: 2.407 MB / 0.9664 GB, free: 14.81 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002189/0.9355, allocations: 181 kB / 0.9666 GB, free: 14.57 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.762/2.698, allocations: 0 / 0.9666 GB, free: 14.57 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/linux/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) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks_res.mat does not exist to compare? outputFormat=mat