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.004606/0.004606, allocations: 100.3 kB / 15.73 MB, free: 6.469 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.00104/0.00104, allocations: 193.5 kB / 16.67 MB, free: 6.379 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.26/1.26, allocations: 222.9 MB / 240.4 MB, free: 4.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002201/0.0022, allocations: 290.4 kB / 290.8 MB, free: 1.938 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8968/0.8968, allocations: 169.3 MB / 0.4983 GB, free: 13.83 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0018/0.0018, allocations: 96.36 kB / 0.681 GB, free: 15.99 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1497/0.1515, allocations: 86.98 MB / 0.7659 GB, free: 8.938 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.SmoothBlocks): time 0.002898/0.1544, allocations: 1.768 MB / 0.7676 GB, free: 7.156 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001158/0.1556, allocations: 0.652 MB / 0.7683 GB, free: 6.496 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.207e-05/0.1557, allocations: 4 kB / 0.7683 GB, free: 6.492 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 4.393e-05/0.1558, allocations: 15.86 kB / 0.7683 GB, free: 6.477 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 7.852e-05/0.1559, allocations: 11.81 kB / 0.7683 GB, free: 6.465 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005709/0.1564, allocations: 169.1 kB / 0.7685 GB, free: 6.305 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0001708/0.1566, allocations: 139.5 kB / 0.7686 GB, free: 6.168 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001436/0.1568, allocations: 53.06 kB / 0.7687 GB, free: 6.117 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001443/0.1569, allocations: 67.83 kB / 0.7687 GB, free: 6.051 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 8.755e-05/0.157, allocations: 47.77 kB / 0.7688 GB, free: 6.004 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 2.436e-05/0.1571, allocations: 8 kB / 0.7688 GB, free: 5.996 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001142/0.1572, allocations: 47.95 kB / 0.7688 GB, free: 5.949 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 4.279e-05/0.1572, allocations: 35.84 kB / 0.7688 GB, free: 5.914 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 5.778e-05/0.1573, allocations: 55.7 kB / 0.7689 GB, free: 5.859 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0002087/0.1575, allocations: 143.5 kB / 0.769 GB, free: 5.719 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.1575, allocations: 0 / 0.769 GB, free: 5.719 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.112e-06/0.1575, allocations: 4 kB / 0.769 GB, free: 5.715 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.551e-06/0.1575, allocations: 0 / 0.769 GB, free: 5.715 MB / 0.5606 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.0005732/0.1581, allocations: 442.9 kB / 0.7695 GB, free: 5.234 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.774e-05/0.1582, allocations: 8.031 kB / 0.7695 GB, free: 5.227 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.218e-05/0.1582, allocations: 46.73 kB / 0.7695 GB, free: 5.172 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008049/0.159, allocations: 112.6 kB / 0.7696 GB, free: 5.062 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001159/0.1591, allocations: 172.2 kB / 0.7698 GB, free: 4.855 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.13e-05/0.1592, allocations: 71.89 kB / 0.7699 GB, free: 4.773 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.074e-05/0.1593, allocations: 12.31 kB / 0.7699 GB, free: 4.762 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004621/0.1597, allocations: 165.5 kB / 0.77 GB, free: 4.594 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.04e-05/0.1598, allocations: 3.984 kB / 0.77 GB, free: 4.59 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.131e-05/0.1598, allocations: 8 kB / 0.77 GB, free: 4.582 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.238e-06/0.1598, allocations: 0 / 0.77 GB, free: 4.582 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005425/0.1603, allocations: 159.8 kB / 0.7702 GB, free: 4.426 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001009/0.1614, allocations: 481.9 kB / 0.7707 GB, free: 3.906 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009059/0.1623, allocations: 218.3 kB / 0.7709 GB, free: 3.684 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002634/0.1626, allocations: 80.84 kB / 0.7709 GB, free: 3.602 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 2.348e-05/0.1626, allocations: 4 kB / 0.7709 GB, free: 3.598 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.392e-05/0.1626, allocations: 34.56 kB / 0.771 GB, free: 3.555 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=6): time 1.112e-06/0.1626, allocations: 0 / 0.771 GB, free: 3.555 MB / 0.5606 GB Notification: Performance of matching and sorting (n=6): time 0.0008957/0.1635, allocations: 265.5 kB / 0.7712 GB, free: 3.289 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.594e-05/0.1636, allocations: 55.41 kB / 0.7713 GB, free: 3.223 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001023/0.1637, allocations: 144 kB / 0.7714 GB, free: 3.074 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.514e-05/0.1637, allocations: 25.7 kB / 0.7714 GB, free: 3.043 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 6.095e-05/0.1638, allocations: 108.2 kB / 0.7715 GB, free: 2.93 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.27e-05/0.1638, allocations: 19.7 kB / 0.7716 GB, free: 2.91 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.866e-05/0.1639, allocations: 29.7 kB / 0.7716 GB, free: 2.875 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 9.078e-05/0.164, allocations: 314.8 kB / 0.7719 GB, free: 2.559 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002892/0.1643, allocations: 83.86 kB / 0.772 GB, free: 2.477 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002758/0.1645, allocations: 90.5 kB / 0.7721 GB, free: 2.379 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005123/0.1651, allocations: 162.7 kB / 0.7722 GB, free: 2.211 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.544e-06/0.1651, allocations: 0 / 0.7722 GB, free: 2.211 MB / 0.5606 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0005967/0.1657, allocations: 205.4 kB / 0.7724 GB, free: 2.004 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.674e-05/0.1657, allocations: 9.875 kB / 0.7724 GB, free: 1.996 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.1657, allocations: 3.938 kB / 0.7724 GB, free: 1.992 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.405e-05/0.1657, allocations: 0 / 0.7724 GB, free: 1.992 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002453/0.166, allocations: 43.89 kB / 0.7725 GB, free: 1.949 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.364e-06/0.166, allocations: 4.062 kB / 0.7725 GB, free: 1.945 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000172/0.1662, allocations: 31.78 kB / 0.7725 GB, free: 1.914 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.466e-05/0.1662, allocations: 7.984 kB / 0.7725 GB, free: 1.906 MB / 0.5606 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 9.228e-05/0.1663, allocations: 117.8 kB / 0.7726 GB, free: 1.785 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.192e-05/0.1663, allocations: 7.906 kB / 0.7726 GB, free: 1.777 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006327/0.167, allocations: 214 kB / 0.7728 GB, free: 1.559 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.478e-06/0.167, allocations: 4 kB / 0.7728 GB, free: 1.555 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.596e-06/0.167, allocations: 0 / 0.7728 GB, free: 1.555 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/0.167, allocations: 3.984 kB / 0.7728 GB, free: 1.551 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002287/0.1672, allocations: 230.4 kB / 0.7731 GB, free: 1.277 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/0.1673, allocations: 4 kB / 0.7731 GB, free: 1.273 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002155/0.1675, allocations: 31.95 kB / 0.7731 GB, free: 1.242 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.116e-06/0.1675, allocations: 0 / 0.7731 GB, free: 1.242 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.393e-05/0.1675, allocations: 3.938 kB / 0.7731 GB, free: 1.238 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.753e-06/0.1675, allocations: 0 / 0.7731 GB, free: 1.238 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.1675, allocations: 4 kB / 0.7731 GB, free: 1.234 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006068/0.1681, allocations: 287.2 kB / 0.7734 GB, free: 0.9375 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 3.907e-05/0.1682, allocations: 89 kB / 0.7735 GB, free: 0.832 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.221e-05/0.1682, allocations: 3.938 kB / 0.7735 GB, free: 0.8281 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002796/0.1685, allocations: 28.14 kB / 0.7735 GB, free: 0.8008 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.694e-05/0.1686, allocations: 12 kB / 0.7735 GB, free: 0.7891 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.981e-05/0.1686, allocations: 11.98 kB / 0.7735 GB, free: 0.7773 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 6.127e-05/0.1686, allocations: 109.5 kB / 0.7736 GB, free: 0.6719 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.01e-07/0.1686, allocations: 0 / 0.7736 GB, free: 0.6719 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002605/0.1689, allocations: 23.94 kB / 0.7736 GB, free: 0.6484 MB / 0.5606 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.2981/0.467, allocations: 0.8096 MB / 0.7744 GB, free: 14.56 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0007603/0.4678, allocations: 162.6 kB / 0.7746 GB, free: 14.56 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 4.919e-06/0.4678, allocations: 0.5312 kB / 0.7746 GB, free: 14.56 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0002953/0.4681, allocations: 86.53 kB / 0.7747 GB, free: 14.56 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003969/0.4685, allocations: 9.109 kB / 0.7747 GB, free: 14.56 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00263/0.4712, allocations: 1.82 MB / 0.7765 GB, free: 13.37 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000116/0.4713, allocations: 0.6996 MB / 0.7771 GB, free: 12.67 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 8.756e-05/0.4714, allocations: 15.42 kB / 0.7772 GB, free: 12.67 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.66e-05/0.4715, allocations: 32.42 kB / 0.7772 GB, free: 12.66 MB / 0.5606 GB Notification: Performance of SimCode: time 3e-07/0.4715, allocations: 0.875 kB / 0.7772 GB, free: 12.66 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01961/0.4911, allocations: 2.808 MB / 0.7799 GB, free: 12.32 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.188/7.679, allocations: 8.375 kB / 0.7799 GB, free: 12.32 MB / 0.5606 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)