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.0007859/0.0007859, allocations: 85.94 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.0007907/0.0007907, 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.274/1.274, allocations: 223.2 MB / 240 MB, free: 5.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001624/0.001624, allocations: 274.8 kB / 291.3 MB, free: 1.969 MB / 238.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:5:3-5:34:writable] Warning: Got element f_alp that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:6:3-6:35:writable] Warning: Elements in the package.mo-file need to be in the same relative order as the package.order file. Got element named f_lay but it was already added because it was not the next element in the list at that time. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:6:3-6:35:writable] Warning: Got element f_lay that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:7:3-7:37:writable] Warning: Elements in the package.mo-file need to be in the same relative order as the package.order file. Got element named f_loss but it was already added because it was not the next element in the list at that time. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:7:3-7:37:writable] Warning: Got element f_loss that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:8:3-8:33:writable] Warning: Elements in the package.mo-file need to be in the same relative order as the package.order file. Got element named f_pv but it was already added because it was not the next element in the list at that time. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:8:3-8:33:writable] Warning: Got element f_pv that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:2:1-34:14:writable] Warning: f_pv was referenced in the package.order file, but was not found in package.mo, f_pv/package.mo or f_pv.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7954/0.7954, allocations: 144.7 MB / 487.2 MB, free: 7.152 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004003/0.0004003, allocations: 19.06 kB / 0.5686 GB, free: 38.86 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.15/0.1504, allocations: 83.08 MB / 0.6497 GB, free: 3.613 MB / 446.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.SmoothBlocks): time 0.002067/0.1525, allocations: 1.448 MB / 0.6511 GB, free: 2.156 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001172/0.1537, allocations: 0.5996 MB / 0.6517 GB, free: 1.555 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.234e-05/0.1538, allocations: 4 kB / 0.6517 GB, free: 1.551 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 3.364e-05/0.1539, allocations: 7.922 kB / 0.6517 GB, free: 1.543 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 7.722e-05/0.154, allocations: 11.86 kB / 0.6517 GB, free: 1.531 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005792/0.1546, allocations: 153.9 kB / 0.6519 GB, free: 1.387 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001562/0.1547, allocations: 108.3 kB / 0.652 GB, free: 1.281 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001506/0.1549, allocations: 35.75 kB / 0.652 GB, free: 1.246 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001273/0.155, allocations: 48.55 kB / 0.6521 GB, free: 1.199 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.767e-05/0.1551, allocations: 48.95 kB / 0.6521 GB, free: 1.152 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.654e-05/0.1551, allocations: 4 kB / 0.6521 GB, free: 1.148 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001098/0.1553, allocations: 39.97 kB / 0.6522 GB, free: 1.109 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 3.663e-05/0.1553, allocations: 24.55 kB / 0.6522 GB, free: 1.086 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 3.84e-05/0.1553, allocations: 41.64 kB / 0.6522 GB, free: 1.039 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001583/0.1555, allocations: 88.36 kB / 0.6523 GB, free: 0.9531 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/0.1555, allocations: 0 / 0.6523 GB, free: 0.9531 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.1555, allocations: 0.5938 kB / 0.6523 GB, free: 0.9531 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.248e-06/0.1555, allocations: 0.5312 kB / 0.6523 GB, free: 0.9531 MB / 446.1 MB 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.0005953/0.1561, allocations: 417.2 kB / 0.6527 GB, free: 0.5 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.419e-05/0.1562, allocations: 13.25 kB / 0.6527 GB, free: 500 kB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.22e-05/0.1563, allocations: 38.55 kB / 0.6528 GB, free: 452 kB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007904/0.1571, allocations: 146.2 kB / 0.6529 GB, free: 312 kB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001567/0.1572, allocations: 185 kB / 0.6531 GB, free: 88 kB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.522e-05/0.1573, allocations: 68.17 kB / 0.6531 GB, free: 8 kB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.24e-05/0.1574, allocations: 8 kB / 0.6531 GB, free: 0 / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000519/0.1579, allocations: 181.5 kB / 0.6533 GB, free: 15.82 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.127e-06/0.1579, allocations: 0.75 kB / 0.6533 GB, free: 15.82 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.136e-05/0.1579, allocations: 8 kB / 0.6533 GB, free: 15.81 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.853e-06/0.1579, allocations: 5.797 kB / 0.6533 GB, free: 15.81 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005461/0.1585, allocations: 189.4 kB / 0.6535 GB, free: 15.63 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001042/0.1595, allocations: 0.5045 MB / 0.654 GB, free: 15.08 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008932/0.1605, allocations: 274.3 kB / 0.6543 GB, free: 14.8 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002785/0.1607, allocations: 96.91 kB / 0.6544 GB, free: 14.7 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.291e-05/0.1608, allocations: 7.938 kB / 0.6544 GB, free: 14.7 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.935e-05/0.1608, allocations: 34.56 kB / 0.6544 GB, free: 14.65 MB / 462.1 MB Notification: Performance of pre-optimization done (n=6): time 1.252e-06/0.1608, allocations: 0 / 0.6544 GB, free: 14.65 MB / 462.1 MB Notification: Performance of matching and sorting (n=6): time 0.0009275/0.1618, allocations: 309.5 kB / 0.6547 GB, free: 14.34 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.982e-05/0.1618, allocations: 63.34 kB / 0.6547 GB, free: 14.27 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001138/0.1619, allocations: 135.2 kB / 0.6549 GB, free: 14.13 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 2.383e-05/0.162, allocations: 25.7 kB / 0.6549 GB, free: 14.1 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.079e-05/0.162, allocations: 116.1 kB / 0.655 GB, free: 13.98 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.622e-05/0.1621, allocations: 23.73 kB / 0.655 GB, free: 13.95 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.195e-06/0.1621, allocations: 0 / 0.655 GB, free: 13.95 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001113/0.1622, allocations: 322.8 kB / 0.6553 GB, free: 13.63 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002731/0.1625, allocations: 91.92 kB / 0.6554 GB, free: 13.54 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002706/0.1628, allocations: 114.5 kB / 0.6555 GB, free: 13.42 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002604/0.163, allocations: 87.94 kB / 0.6556 GB, free: 13.33 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.163, allocations: 0 / 0.6556 GB, free: 13.33 MB / 462.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0006118/0.1637, allocations: 241.4 kB / 0.6559 GB, free: 13.09 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.654e-05/0.1637, allocations: 4 kB / 0.6559 GB, free: 13.09 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-06/0.1637, allocations: 0 / 0.6559 GB, free: 13.09 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.437e-05/0.1637, allocations: 4 kB / 0.6559 GB, free: 13.08 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002376/0.164, allocations: 43.95 kB / 0.6559 GB, free: 13.04 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.881e-06/0.164, allocations: 3.938 kB / 0.6559 GB, free: 13.04 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001689/0.1642, allocations: 39.86 kB / 0.6559 GB, free: 13 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.264e-05/0.1642, allocations: 0 / 0.6559 GB, free: 13 MB / 462.1 MB 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 9.996e-05/0.1643, allocations: 125.8 kB / 0.6561 GB, free: 12.86 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.637e-05/0.1643, allocations: 7.906 kB / 0.6561 GB, free: 12.86 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006525/0.165, allocations: 242.2 kB / 0.6563 GB, free: 12.61 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.957e-06/0.165, allocations: 3.984 kB / 0.6563 GB, free: 12.61 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.488e-06/0.165, allocations: 0 / 0.6563 GB, free: 12.61 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.611e-06/0.165, allocations: 3.984 kB / 0.6563 GB, free: 12.61 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002549/0.1653, allocations: 234.3 kB / 0.6565 GB, free: 12.33 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.674e-06/0.1653, allocations: 0 / 0.6565 GB, free: 12.33 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002151/0.1655, allocations: 40.33 kB / 0.6566 GB, free: 12.29 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.525e-06/0.1655, allocations: 4 kB / 0.6566 GB, free: 12.29 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.536e-05/0.1656, allocations: 7.984 kB / 0.6566 GB, free: 12.28 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.839e-06/0.1656, allocations: 11.94 kB / 0.6566 GB, free: 12.27 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.1656, allocations: 0 / 0.6566 GB, free: 12.27 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000625/0.1662, allocations: 319.2 kB / 0.6569 GB, free: 11.94 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.865e-05/0.1663, allocations: 88.95 kB / 0.657 GB, free: 11.83 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.172e-05/0.1663, allocations: 0 / 0.657 GB, free: 11.83 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002662/0.1666, allocations: 47.89 kB / 0.657 GB, free: 11.79 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.834e-05/0.1666, allocations: 11.98 kB / 0.657 GB, free: 11.77 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.88e-05/0.1666, allocations: 7.984 kB / 0.6571 GB, free: 11.77 MB / 462.1 MB Notification: Performance of sorting global known variables: time 6.695e-05/0.1667, allocations: 105.3 kB / 0.6572 GB, free: 11.66 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1667, allocations: 0 / 0.6572 GB, free: 11.66 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0002547/0.167, allocations: 23.91 kB / 0.6572 GB, free: 11.64 MB / 462.1 MB 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.0008379/0.1678, allocations: 0.849 MB / 0.658 GB, free: 10.77 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0005733/0.1684, allocations: 203.8 kB / 0.6582 GB, free: 10.57 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.1684, allocations: 0 / 0.6582 GB, free: 10.57 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002726/0.1687, allocations: 104 kB / 0.6583 GB, free: 10.46 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002925/0.169, allocations: 8 kB / 0.6583 GB, free: 10.46 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001792/0.1708, allocations: 0.9129 MB / 0.6592 GB, free: 9.492 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002397/0.1711, allocations: 0.7043 MB / 0.6599 GB, free: 8.762 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 9.891e-05/0.1712, allocations: 20.17 kB / 0.6599 GB, free: 8.742 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.678e-05/0.1712, allocations: 31.42 kB / 0.6599 GB, free: 8.711 MB / 462.1 MB Notification: Performance of SimCode: time 2.7e-07/0.1713, allocations: 4 kB / 0.6599 GB, free: 8.707 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01175/0.183, allocations: 2.427 MB / 0.6623 GB, free: 6.434 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001959/0.1832, allocations: 193 kB / 0.6625 GB, free: 6.191 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.587/1.77, allocations: 0 / 0.6625 GB, free: 6.191 MB / 462.1 MB (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/linux/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) Environment - environmentSimulation: