Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Utilities.Math.Examples.SmoothBlocks,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_SmoothBlocks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.SmoothBlocks,fileNamePrefix="BuildingSystems_BuildingSystems_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.004951/0.004951, allocations: 101 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.001405/0.001405, allocations: 192.3 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.399/1.399, 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/NcDataReader2 2.5.1-master/package.mo): time 0.002866/0.002866, allocations: 289.4 kB / 290.8 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.04/1.04, allocations: 169.2 MB / 0.4983 GB, free: 4.441 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002799/0.002799, allocations: 95.86 kB / 0.681 GB, free: 7.48 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.424/0.4268, allocations: 86.98 MB / 0.7659 GB, free: 3.879 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.SmoothBlocks): time 0.002895/0.4298, allocations: 1.766 MB / 0.7676 GB, free: 2.098 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0012/0.431, allocations: 0.6571 MB / 0.7683 GB, free: 1.434 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.515e-05/0.4311, allocations: 4 kB / 0.7683 GB, free: 1.43 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 4.221e-05/0.4311, allocations: 11.86 kB / 0.7683 GB, free: 1.418 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 6.801e-05/0.4312, allocations: 11.81 kB / 0.7683 GB, free: 1.406 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005612/0.4318, allocations: 174.3 kB / 0.7685 GB, free: 1.238 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0001774/0.432, allocations: 119.7 kB / 0.7686 GB, free: 1.121 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001484/0.4321, allocations: 60.61 kB / 0.7687 GB, free: 1.066 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001225/0.4322, allocations: 63.72 kB / 0.7687 GB, free: 1.004 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 8.85e-05/0.4323, allocations: 51.77 kB / 0.7688 GB, free: 0.9531 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 2.385e-05/0.4324, allocations: 8 kB / 0.7688 GB, free: 0.9453 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001104/0.4325, allocations: 51.95 kB / 0.7688 GB, free: 0.8945 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 3.665e-05/0.4325, allocations: 35.91 kB / 0.7689 GB, free: 0.8594 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 5.747e-05/0.4326, allocations: 51.72 kB / 0.7689 GB, free: 0.8086 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0002225/0.4328, allocations: 144.7 kB / 0.769 GB, free: 0.6719 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.4328, allocations: 3.938 kB / 0.769 GB, free: 0.668 MB / 0.5294 GB Notification: Performance of FrontEnd: time 3.085e-06/0.4329, allocations: 4 kB / 0.7691 GB, free: 0.6641 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 5.16e-06/0.4329, allocations: 0 / 0.7691 GB, free: 0.6641 MB / 0.5294 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.0006396/0.4335, allocations: 434.8 kB / 0.7695 GB, free: 196 kB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.373e-05/0.4336, allocations: 8.031 kB / 0.7695 GB, free: 188 kB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.858e-05/0.4336, allocations: 54.73 kB / 0.7695 GB, free: 124 kB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001041/0.4347, allocations: 108.7 kB / 0.7696 GB, free: 16 kB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001806/0.4349, allocations: 188.1 kB / 0.7698 GB, free: 15.79 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001015/0.435, allocations: 63.97 kB / 0.7699 GB, free: 15.72 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.414e-05/0.435, allocations: 12.38 kB / 0.7699 GB, free: 15.71 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000506/0.4355, allocations: 173.4 kB / 0.77 GB, free: 15.53 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.458e-06/0.4356, allocations: 0 / 0.77 GB, free: 15.53 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.318e-05/0.4356, allocations: 4 kB / 0.7701 GB, free: 15.53 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.558e-06/0.4356, allocations: 0 / 0.7701 GB, free: 15.53 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005852/0.4362, allocations: 167.8 kB / 0.7702 GB, free: 15.36 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001102/0.4373, allocations: 478 kB / 0.7707 GB, free: 14.85 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009631/0.4383, allocations: 222.3 kB / 0.7709 GB, free: 14.62 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002997/0.4386, allocations: 80.89 kB / 0.771 GB, free: 14.54 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 2.453e-05/0.4386, allocations: 7.984 kB / 0.771 GB, free: 14.53 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.013e-05/0.4386, allocations: 30.56 kB / 0.771 GB, free: 14.49 MB / 0.545 GB Notification: Performance of pre-optimization done (n=6): time 1.212e-06/0.4387, allocations: 0 / 0.771 GB, free: 14.49 MB / 0.545 GB Notification: Performance of matching and sorting (n=6): time 0.000982/0.4396, allocations: 265.3 kB / 0.7712 GB, free: 14.23 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.596e-05/0.4397, allocations: 55.41 kB / 0.7713 GB, free: 14.16 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001167/0.4398, allocations: 135.9 kB / 0.7714 GB, free: 14.02 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 3.598e-05/0.4399, allocations: 33.7 kB / 0.7715 GB, free: 13.98 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 7.515e-05/0.4399, allocations: 108.2 kB / 0.7716 GB, free: 13.87 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 2.767e-05/0.44, allocations: 19.86 kB / 0.7716 GB, free: 13.85 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.79e-05/0.44, allocations: 25.7 kB / 0.7716 GB, free: 13.82 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001425/0.4402, allocations: 318.8 kB / 0.7719 GB, free: 13.5 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002864/0.4405, allocations: 75.92 kB / 0.772 GB, free: 13.42 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002968/0.4408, allocations: 98.48 kB / 0.7721 GB, free: 13.32 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005826/0.4414, allocations: 162.4 kB / 0.7722 GB, free: 13.15 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.4414, allocations: 0 / 0.7722 GB, free: 13.15 MB / 0.545 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0006477/0.442, allocations: 201.5 kB / 0.7724 GB, free: 12.95 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.688e-05/0.4421, allocations: 8 kB / 0.7724 GB, free: 12.94 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.753e-06/0.4421, allocations: 3.938 kB / 0.7724 GB, free: 12.93 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.426e-05/0.4421, allocations: 0 / 0.7724 GB, free: 12.93 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002794/0.4424, allocations: 35.95 kB / 0.7725 GB, free: 12.9 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.24e-06/0.4424, allocations: 320 / 0.7725 GB, free: 12.9 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001904/0.4426, allocations: 31.89 kB / 0.7725 GB, free: 12.87 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.694e-05/0.4426, allocations: 12 kB / 0.7725 GB, free: 12.86 MB / 0.545 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.0001099/0.4427, allocations: 117.8 kB / 0.7726 GB, free: 12.73 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.436e-05/0.4428, allocations: 11.89 kB / 0.7726 GB, free: 12.72 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007028/0.4435, allocations: 206.2 kB / 0.7728 GB, free: 12.51 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.402e-06/0.4435, allocations: 4 kB / 0.7728 GB, free: 12.51 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/0.4435, allocations: 0 / 0.7728 GB, free: 12.51 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.969e-06/0.4435, allocations: 3.984 kB / 0.7728 GB, free: 12.5 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003001/0.4438, allocations: 234.3 kB / 0.7731 GB, free: 12.22 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.4438, allocations: 0 / 0.7731 GB, free: 12.22 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002194/0.4441, allocations: 31.95 kB / 0.7731 GB, free: 12.19 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.4441, allocations: 3.938 kB / 0.7731 GB, free: 12.19 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.865e-05/0.4441, allocations: 11.92 kB / 0.7731 GB, free: 12.18 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.4441, allocations: 0 / 0.7731 GB, free: 12.18 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.4441, allocations: 0 / 0.7731 GB, free: 12.18 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006606/0.4448, allocations: 283.3 kB / 0.7734 GB, free: 11.88 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 4.935e-05/0.4448, allocations: 85.06 kB / 0.7735 GB, free: 11.78 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.571e-05/0.4449, allocations: 7.938 kB / 0.7735 GB, free: 11.77 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003066/0.4452, allocations: 27.95 kB / 0.7735 GB, free: 11.75 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.591e-05/0.4452, allocations: 7.984 kB / 0.7735 GB, free: 11.74 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.854e-05/0.4452, allocations: 4 kB / 0.7735 GB, free: 11.73 MB / 0.545 GB Notification: Performance of sorting global known variables: time 8.169e-05/0.4453, allocations: 109.1 kB / 0.7736 GB, free: 11.63 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4453, allocations: 4 kB / 0.7736 GB, free: 11.62 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003604/0.4457, allocations: 31.89 kB / 0.7736 GB, free: 11.59 MB / 0.545 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.001108/0.4468, allocations: 0.8177 MB / 0.7744 GB, free: 10.75 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.000621/0.4474, allocations: 160 kB / 0.7746 GB, free: 10.59 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.4475, allocations: 0 / 0.7746 GB, free: 10.59 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0002948/0.4478, allocations: 88.16 kB / 0.7747 GB, free: 10.51 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003945/0.4482, allocations: 14.78 kB / 0.7747 GB, free: 10.5 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003001/0.4512, allocations: 1.836 MB / 0.7765 GB, free: 8.57 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003057/0.4515, allocations: 0.7002 MB / 0.7772 GB, free: 7.844 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 8.719e-05/0.4516, allocations: 19.98 kB / 0.7772 GB, free: 7.824 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.46e-05/0.4517, allocations: 35.41 kB / 0.7772 GB, free: 7.789 MB / 0.545 GB Notification: Performance of SimCode: time 2.7e-07/0.4517, allocations: 0 / 0.7772 GB, free: 7.789 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02248/0.4742, allocations: 2.766 MB / 0.7799 GB, free: 5.133 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.052/8.526, allocations: 11.41 kB / 0.7799 GB, free: 5.125 MB / 0.545 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothBlocks.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothBlocks.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothBlocks.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothBlocks.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Examples_SmoothBlocks_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Examples_SmoothBlocks.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothBlocks.pipe 2>&1)