Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.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: translateModel(BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives") translateModel(BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008242/0.0008242, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.0008296/0.0008296, allocations: 177.3 kB / 15.95 MB, free: 216 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.2/1.2, allocations: 223.2 MB / 239.9 MB, free: 5.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001669/0.001669, allocations: 274.8 kB / 291.3 MB, free: 1.977 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.7749/0.7749, allocations: 144.6 MB / 487 MB, free: 7.156 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004119/0.0004119, allocations: 15.05 kB / 0.5683 GB, free: 38.36 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1396/0.14, allocations: 83.07 MB / 0.6494 GB, free: 3.559 MB / 446.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives): time 0.0006613/0.1407, allocations: 317.1 kB / 0.6497 GB, free: 3.25 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001204/0.1419, allocations: 1.072 MB / 0.6508 GB, free: 2.164 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.799e-05/0.142, allocations: 0 / 0.6508 GB, free: 2.164 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 1.148e-05/0.142, allocations: 0.9688 kB / 0.6508 GB, free: 2.164 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001911/0.1422, allocations: 23.86 kB / 0.6508 GB, free: 2.141 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.225e-06/0.1422, allocations: 3.438 kB / 0.6508 GB, free: 2.141 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 2.716e-05/0.1422, allocations: 0 / 0.6508 GB, free: 2.141 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.386e-05/0.1423, allocations: 3.984 kB / 0.6508 GB, free: 2.137 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.432e-05/0.1423, allocations: 7.984 kB / 0.6508 GB, free: 2.129 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.189e-05/0.1423, allocations: 0 / 0.6508 GB, free: 2.129 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 6.302e-06/0.1423, allocations: 0 / 0.6508 GB, free: 2.129 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.075e-05/0.1424, allocations: 15.98 kB / 0.6508 GB, free: 2.113 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 7.374e-06/0.1424, allocations: 7.922 kB / 0.6509 GB, free: 2.105 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 1.85e-05/0.1425, allocations: 25.7 kB / 0.6509 GB, free: 2.074 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 5.397e-05/0.1425, allocations: 12.61 kB / 0.6509 GB, free: 2.062 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.444e-06/0.1425, allocations: 0 / 0.6509 GB, free: 2.062 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.1425, allocations: 0.6562 kB / 0.6509 GB, free: 2.062 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.128e-06/0.1425, allocations: 0 / 0.6509 GB, free: 2.062 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.0002513/0.1428, allocations: 314.3 kB / 0.6512 GB, free: 1.711 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.822e-05/0.1428, allocations: 8.031 kB / 0.6512 GB, free: 1.703 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.51e-05/0.1429, allocations: 4 kB / 0.6512 GB, free: 1.699 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.292e-05/0.143, allocations: 163.1 kB / 0.6514 GB, free: 1.5 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.494e-05/0.143, allocations: 3.953 kB / 0.6514 GB, free: 1.496 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.306e-05/0.143, allocations: 0 / 0.6514 GB, free: 1.496 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.793e-05/0.1431, allocations: 34.2 kB / 0.6514 GB, free: 1.457 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.147e-05/0.1432, allocations: 4.656 kB / 0.6514 GB, free: 1.453 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.516e-06/0.1432, allocations: 0 / 0.6514 GB, free: 1.453 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.689e-06/0.1432, allocations: 4.562 kB / 0.6514 GB, free: 1.449 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.327e-05/0.1432, allocations: 13.05 kB / 0.6514 GB, free: 1.438 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001418/0.1434, allocations: 149.6 kB / 0.6516 GB, free: 1.242 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001653/0.1436, allocations: 31.95 kB / 0.6516 GB, free: 1.203 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001458/0.1437, allocations: 89.14 kB / 0.6517 GB, free: 1.098 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.72e-05/0.1438, allocations: 36.31 kB / 0.6517 GB, free: 1.055 MB / 446.1 MB Notification: Performance of pre-optimization done (n=3): time 1.353e-06/0.1438, allocations: 3.938 kB / 0.6517 GB, free: 1.051 MB / 446.1 MB Notification: Performance of matching and sorting (n=5): time 0.003983/0.1477, allocations: 0.5688 MB / 0.6523 GB, free: 0.5 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.299e-05/0.1478, allocations: 55.41 kB / 0.6523 GB, free: 444 kB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.319e-05/0.1478, allocations: 93.86 kB / 0.6524 GB, free: 340 kB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.993e-05/0.1479, allocations: 25.7 kB / 0.6524 GB, free: 308 kB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.002e-05/0.1479, allocations: 84.08 kB / 0.6525 GB, free: 220 kB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.394e-05/0.1479, allocations: 16.03 kB / 0.6525 GB, free: 204 kB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.976e-06/0.1479, allocations: 0 / 0.6525 GB, free: 204 kB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001054/0.1481, allocations: 318.8 kB / 0.6528 GB, free: 15.88 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005518/0.1486, allocations: 79.95 kB / 0.6529 GB, free: 15.8 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005347/0.1492, allocations: 110.6 kB / 0.653 GB, free: 15.68 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005266/0.1497, allocations: 83.95 kB / 0.6531 GB, free: 15.6 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.392e-06/0.1497, allocations: 4 kB / 0.6531 GB, free: 15.6 MB / 462.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.001133/0.1508, allocations: 217.5 kB / 0.6533 GB, free: 15.38 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.495e-05/0.1509, allocations: 5.094 kB / 0.6533 GB, free: 15.38 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.019e-06/0.1509, allocations: 0 / 0.6533 GB, free: 15.38 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.235e-05/0.1509, allocations: 0 / 0.6533 GB, free: 15.38 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003673/0.1513, allocations: 52 kB / 0.6534 GB, free: 15.32 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.382e-06/0.1513, allocations: 0 / 0.6534 GB, free: 15.32 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003194/0.1516, allocations: 39.98 kB / 0.6534 GB, free: 15.29 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.709e-05/0.1516, allocations: 11.98 kB / 0.6534 GB, free: 15.27 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 (5): * Single equations (assignments): 5 * 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.413e-05/0.1517, allocations: 109.8 kB / 0.6535 GB, free: 15.16 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.803e-05/0.1518, allocations: 3.953 kB / 0.6535 GB, free: 15.15 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001254/0.153, allocations: 241.1 kB / 0.6537 GB, free: 14.91 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.368e-06/0.153, allocations: 0 / 0.6537 GB, free: 14.91 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.419e-06/0.1531, allocations: 0 / 0.6537 GB, free: 14.91 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.926e-06/0.1531, allocations: 0 / 0.6537 GB, free: 14.91 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001431/0.1545, allocations: 458.4 kB / 0.6542 GB, free: 14.41 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.1545, allocations: 4 kB / 0.6542 GB, free: 14.41 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003382/0.1549, allocations: 43.97 kB / 0.6542 GB, free: 14.36 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.18e-06/0.1549, allocations: 8 kB / 0.6542 GB, free: 14.36 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.332e-05/0.1549, allocations: 0 / 0.6542 GB, free: 14.36 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.1549, allocations: 0 / 0.6542 GB, free: 14.36 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.1549, allocations: 0 / 0.6542 GB, free: 14.36 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001133/0.156, allocations: 303.4 kB / 0.6545 GB, free: 14.04 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.102e-05/0.1561, allocations: 85.28 kB / 0.6546 GB, free: 13.94 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.276e-05/0.1561, allocations: 7.922 kB / 0.6546 GB, free: 13.93 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003317/0.1565, allocations: 47.98 kB / 0.6547 GB, free: 13.89 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.147e-05/0.1565, allocations: 3.938 kB / 0.6547 GB, free: 13.88 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.123e-05/0.1565, allocations: 7.984 kB / 0.6547 GB, free: 13.88 MB / 462.1 MB Notification: Performance of sorting global known variables: time 2.223e-05/0.1565, allocations: 79.28 kB / 0.6547 GB, free: 13.8 MB / 462.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1565, allocations: 0 / 0.6547 GB, free: 13.8 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0002382/0.1568, allocations: 12 kB / 0.6548 GB, free: 13.79 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 (5): * Single equations (assignments): 5 * 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.0001523/0.1569, allocations: 101.5 kB / 0.6549 GB, free: 13.68 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001138/0.1581, allocations: 179.8 kB / 0.655 GB, free: 13.5 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.1581, allocations: 4.188 kB / 0.655 GB, free: 13.5 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005553/0.1587, allocations: 91.94 kB / 0.6551 GB, free: 13.41 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001281/0.1588, allocations: 0 / 0.6551 GB, free: 13.41 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001022/0.1598, allocations: 214.7 kB / 0.6553 GB, free: 13.17 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002183/0.1601, allocations: 0.677 MB / 0.656 GB, free: 12.46 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.000213/0.1603, allocations: 28 kB / 0.656 GB, free: 12.44 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.8e-05/0.1603, allocations: 15.44 kB / 0.656 GB, free: 12.42 MB / 462.1 MB Notification: Performance of SimCode: time 1.974e-06/0.1603, allocations: 0 / 0.656 GB, free: 12.42 MB / 462.1 MB Notification: Performance of Templates: time 0.002586/0.1629, allocations: 0.8015 MB / 0.6568 GB, free: 11.63 MB / 462.1 MB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.makefile Environment - environmentSimulation: (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe 2>&1) Environment - environmentSimulation: