Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothHeaviside.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.SmoothHeaviside,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_SmoothHeaviside",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.SmoothHeaviside,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_SmoothHeaviside",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.0007383/0.0007383, allocations: 87.42 kB / 15.07 MB, free: 1.082 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.0007781/0.0007782, allocations: 168.7 kB / 15.95 MB, free: 200 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.302/1.302, allocations: 223.2 MB / 240 MB, free: 5.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001614/0.001614, allocations: 263.2 kB / 291.3 MB, free: 2 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.8125/0.8125, allocations: 144.7 MB / 487.2 MB, free: 7.141 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004087/0.0004088, allocations: 19.38 kB / 0.5686 GB, free: 38.44 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1394/0.1399, allocations: 83.09 MB / 0.6497 GB, free: 3.465 MB / 446.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.SmoothHeaviside): time 0.001325/0.1412, allocations: 1.138 MB / 0.6508 GB, free: 2.316 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006106/0.1418, allocations: 437.6 kB / 0.6512 GB, free: 1.887 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.68e-05/0.1419, allocations: 0 / 0.6512 GB, free: 1.887 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 1.282e-05/0.1419, allocations: 3.938 kB / 0.6512 GB, free: 1.883 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 6.104e-05/0.142, allocations: 7.938 kB / 0.6513 GB, free: 1.875 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001496/0.1421, allocations: 20.53 kB / 0.6513 GB, free: 1.855 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 5.012e-05/0.1422, allocations: 20.45 kB / 0.6513 GB, free: 1.836 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7e-05/0.1423, allocations: 8.531 kB / 0.6513 GB, free: 1.828 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.17e-05/0.1423, allocations: 11.92 kB / 0.6513 GB, free: 1.816 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.596e-05/0.1424, allocations: 13.28 kB / 0.6513 GB, free: 1.805 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 8.285e-06/0.1424, allocations: 0 / 0.6513 GB, free: 1.805 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.72e-05/0.1424, allocations: 19.97 kB / 0.6513 GB, free: 1.785 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 9.157e-06/0.1425, allocations: 5.297 kB / 0.6514 GB, free: 1.781 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 2.538e-05/0.1425, allocations: 29.7 kB / 0.6514 GB, free: 1.746 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 6.143e-05/0.1426, allocations: 19.91 kB / 0.6514 GB, free: 1.727 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/0.1426, allocations: 0 / 0.6514 GB, free: 1.727 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1426, allocations: 4.75 kB / 0.6514 GB, free: 1.723 MB / 446.1 MB Notification: Performance of Transformations before backend: time 3.276e-06/0.1426, allocations: 0 / 0.6514 GB, free: 1.723 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003485/0.1429, allocations: 344.2 kB / 0.6517 GB, free: 1.344 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.21e-05/0.143, allocations: 8.031 kB / 0.6517 GB, free: 1.336 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.945e-05/0.143, allocations: 30.56 kB / 0.6518 GB, free: 1.297 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.015e-05/0.143, allocations: 8.719 kB / 0.6518 GB, free: 1.289 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.545e-05/0.1431, allocations: 163 kB / 0.6519 GB, free: 1.09 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.02e-05/0.1432, allocations: 9.188 kB / 0.6519 GB, free: 1.082 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.022e-06/0.1432, allocations: 4 kB / 0.6519 GB, free: 1.078 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001527/0.1433, allocations: 54.86 kB / 0.652 GB, free: 1.02 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.462e-06/0.1433, allocations: 0.5938 kB / 0.652 GB, free: 1.02 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.093e-06/0.1433, allocations: 0 / 0.652 GB, free: 1.02 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.73e-06/0.1434, allocations: 8.516 kB / 0.652 GB, free: 1.012 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001544/0.1435, allocations: 46.62 kB / 0.6521 GB, free: 0.9688 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002716/0.1438, allocations: 253.5 kB / 0.6523 GB, free: 0.6719 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001133/0.1439, allocations: 44.91 kB / 0.6523 GB, free: 0.6211 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.929e-05/0.144, allocations: 31.47 kB / 0.6524 GB, free: 0.5898 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001052/0.1441, allocations: 81.09 kB / 0.6524 GB, free: 0.4922 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.593e-05/0.1442, allocations: 34.56 kB / 0.6525 GB, free: 460 kB / 446.1 MB Notification: Performance of pre-optimization done (n=2): time 1.072e-06/0.1442, allocations: 0.6875 kB / 0.6525 GB, free: 460 kB / 446.1 MB Notification: Performance of matching and sorting (n=2): time 0.0003139/0.1445, allocations: 101.7 kB / 0.6526 GB, free: 356 kB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.847e-05/0.1445, allocations: 55.34 kB / 0.6526 GB, free: 288 kB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.371e-05/0.1446, allocations: 101.9 kB / 0.6527 GB, free: 176 kB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.189e-05/0.1446, allocations: 26.33 kB / 0.6527 GB, free: 144 kB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.32e-05/0.1447, allocations: 85.53 kB / 0.6528 GB, free: 56 kB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.46e-05/0.1447, allocations: 11.91 kB / 0.6528 GB, free: 44 kB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.755e-06/0.1447, allocations: 0 / 0.6528 GB, free: 44 kB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001014/0.1448, allocations: 315.7 kB / 0.6531 GB, free: 15.73 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.833e-05/0.1449, allocations: 23.27 kB / 0.6532 GB, free: 15.71 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.18e-05/0.1449, allocations: 23.97 kB / 0.6532 GB, free: 15.68 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.387e-05/0.145, allocations: 25.83 kB / 0.6532 GB, free: 15.66 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.145, allocations: 0 / 0.6532 GB, free: 15.66 MB / 462.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001825/0.1452, allocations: 75.33 kB / 0.6533 GB, free: 15.58 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.139e-05/0.1452, allocations: 9.078 kB / 0.6533 GB, free: 15.57 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.597e-06/0.1453, allocations: 0 / 0.6533 GB, free: 15.57 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.198e-06/0.1453, allocations: 0 / 0.6533 GB, free: 15.57 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.652e-05/0.1454, allocations: 12.22 kB / 0.6533 GB, free: 15.56 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.147e-06/0.1454, allocations: 4 kB / 0.6533 GB, free: 15.56 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.342e-05/0.1454, allocations: 7.984 kB / 0.6533 GB, free: 15.55 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.719e-06/0.1454, allocations: 0 / 0.6533 GB, free: 15.55 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (2): * Single equations (assignments): 2 * 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 6.518e-05/0.1455, allocations: 117.8 kB / 0.6534 GB, free: 15.43 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.947e-05/0.1455, allocations: 3.906 kB / 0.6534 GB, free: 15.42 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002104/0.1457, allocations: 88.7 kB / 0.6535 GB, free: 15.33 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.473e-06/0.1458, allocations: 0 / 0.6535 GB, free: 15.33 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/0.1458, allocations: 0 / 0.6535 GB, free: 15.33 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.1458, allocations: 4 kB / 0.6535 GB, free: 15.33 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001399/0.1459, allocations: 161.6 kB / 0.6537 GB, free: 15.12 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.1459, allocations: 0 / 0.6537 GB, free: 15.12 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.667e-05/0.146, allocations: 23.95 kB / 0.6537 GB, free: 15.1 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.893e-06/0.146, allocations: 0 / 0.6537 GB, free: 15.1 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.31e-06/0.146, allocations: 0 / 0.6537 GB, free: 15.1 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.223e-06/0.146, allocations: 0 / 0.6537 GB, free: 15.1 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.146, allocations: 0 / 0.6537 GB, free: 15.1 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002098/0.1462, allocations: 171.5 kB / 0.6539 GB, free: 14.91 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.379e-05/0.1463, allocations: 85 kB / 0.6539 GB, free: 14.81 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.25e-05/0.1463, allocations: 0 / 0.6539 GB, free: 14.81 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.364e-05/0.1464, allocations: 20.17 kB / 0.654 GB, free: 14.79 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.592e-05/0.1464, allocations: 3.938 kB / 0.654 GB, free: 14.79 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.799e-06/0.1464, allocations: 4 kB / 0.654 GB, free: 14.79 MB / 462.1 MB Notification: Performance of sorting global known variables: time 3.311e-05/0.1465, allocations: 87.3 kB / 0.6541 GB, free: 14.7 MB / 462.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1465, allocations: 0 / 0.6541 GB, free: 14.7 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0002155/0.1467, allocations: 12 kB / 0.6541 GB, free: 14.69 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 (2): * Single equations (assignments): 2 * 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.0004611/0.1471, allocations: 0.7085 MB / 0.6548 GB, free: 13.95 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0001876/0.1473, allocations: 59.92 kB / 0.6548 GB, free: 13.89 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.1474, allocations: 0 / 0.6548 GB, free: 13.89 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 7.94e-05/0.1474, allocations: 19.98 kB / 0.6548 GB, free: 13.87 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000265/0.1477, allocations: 9.406 kB / 0.6548 GB, free: 13.86 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003429/0.1481, allocations: 138.5 kB / 0.655 GB, free: 13.69 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002018/0.1483, allocations: 0.6809 MB / 0.6556 GB, free: 12.98 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 2.262e-05/0.1483, allocations: 0 / 0.6556 GB, free: 12.98 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.702e-05/0.1483, allocations: 7.438 kB / 0.6556 GB, free: 12.97 MB / 462.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1483, allocations: 0 / 0.6556 GB, free: 12.97 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01007/0.1584, allocations: 1.167 MB / 0.6568 GB, free: 11.95 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001534/0.1586, allocations: 193.9 kB / 0.657 GB, free: 11.71 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.57/1.729, allocations: 3.938 kB / 0.657 GB, free: 11.7 MB / 462.1 MB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothHeaviside.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothHeaviside.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothHeaviside.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothHeaviside.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Examples_SmoothHeaviside_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Examples_SmoothHeaviside.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothHeaviside.pipe 2>&1) Environment - environmentSimulation: