Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction.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.SpliceFunction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction") translateModel(BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008874/0.0008875, allocations: 99.62 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.0009199/0.00092, allocations: 177.3 kB / 15.94 MB, free: 228 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.211/1.211, allocations: 223.2 MB / 239.9 MB, free: 5.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001611/0.00161, allocations: 270.7 kB / 291.3 MB, free: 1.867 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.7965/0.7965, allocations: 144.6 MB / 487 MB, free: 7.164 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003835/0.0003836, allocations: 19.89 kB / 0.5683 GB, free: 38.16 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1419/0.1423, allocations: 83.08 MB / 0.6494 GB, free: 3.551 MB / 446.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction): time 0.0006354/0.1429, allocations: 305.2 kB / 0.6497 GB, free: 3.254 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.00127/0.1442, allocations: 1.198 MB / 0.6509 GB, free: 2.043 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.107e-06/0.1442, allocations: 0 / 0.6509 GB, free: 2.043 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 1.188e-05/0.1442, allocations: 0 / 0.6509 GB, free: 2.043 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 4.268e-06/0.1443, allocations: 0 / 0.6509 GB, free: 2.043 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002721/0.1445, allocations: 55 kB / 0.651 GB, free: 1.992 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 3.239e-05/0.1446, allocations: 0 / 0.651 GB, free: 1.992 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.11e-05/0.1446, allocations: 0 / 0.651 GB, free: 1.992 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.634e-05/0.1446, allocations: 4 kB / 0.651 GB, free: 1.988 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.385e-05/0.1447, allocations: 3.984 kB / 0.651 GB, free: 1.984 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 7.144e-06/0.1447, allocations: 0 / 0.651 GB, free: 1.984 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001864/0.1449, allocations: 95.83 kB / 0.6511 GB, free: 1.891 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 5.45e-06/0.1449, allocations: 0.5 kB / 0.6511 GB, free: 1.891 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 2.019e-05/0.1449, allocations: 26.36 kB / 0.6511 GB, free: 1.859 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 8.132e-05/0.145, allocations: 39.95 kB / 0.6511 GB, free: 1.82 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.325e-06/0.145, allocations: 0.5312 kB / 0.6511 GB, free: 1.82 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.145, allocations: 0.625 kB / 0.6511 GB, free: 1.82 MB / 446.1 MB Notification: Performance of Transformations before backend: time 3.656e-06/0.145, allocations: 0 / 0.6511 GB, free: 1.82 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.00024/0.1453, allocations: 322.1 kB / 0.6514 GB, free: 1.461 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.982e-05/0.1453, allocations: 8.031 kB / 0.6514 GB, free: 1.453 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.012e-05/0.1453, allocations: 0 / 0.6514 GB, free: 1.453 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.583e-05/0.1454, allocations: 159.1 kB / 0.6516 GB, free: 1.258 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.224e-05/0.1454, allocations: 7.953 kB / 0.6516 GB, free: 1.25 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.007e-06/0.1455, allocations: 0 / 0.6516 GB, free: 1.25 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.65e-05/0.1455, allocations: 30.39 kB / 0.6516 GB, free: 1.215 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.213e-06/0.1456, allocations: 5.359 kB / 0.6516 GB, free: 1.211 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.033e-06/0.1456, allocations: 3.938 kB / 0.6516 GB, free: 1.207 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.018e-06/0.1456, allocations: 0 / 0.6516 GB, free: 1.207 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.942e-05/0.1456, allocations: 7.938 kB / 0.6516 GB, free: 1.199 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001173/0.1457, allocations: 150.4 kB / 0.6518 GB, free: 1.004 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.33e-05/0.1458, allocations: 19.33 kB / 0.6518 GB, free: 0.9766 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005549/0.1463, allocations: 0.5684 MB / 0.6524 GB, free: 288 kB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.443e-05/0.1464, allocations: 35.19 kB / 0.6524 GB, free: 244 kB / 446.1 MB Notification: Performance of pre-optimization done (n=1): time 1.012e-06/0.1464, allocations: 1.25 kB / 0.6524 GB, free: 244 kB / 446.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001157/0.1465, allocations: 33.64 kB / 0.6524 GB, free: 204 kB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.878e-05/0.1465, allocations: 52.28 kB / 0.6525 GB, free: 140 kB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.961e-05/0.1466, allocations: 93.84 kB / 0.6526 GB, free: 36 kB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.077e-05/0.1466, allocations: 26.36 kB / 0.6526 GB, free: 4 kB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.675e-05/0.1466, allocations: 82.67 kB / 0.6527 GB, free: 15.92 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.523e-05/0.1467, allocations: 11.91 kB / 0.6527 GB, free: 15.91 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.104e-06/0.1467, allocations: 0 / 0.6527 GB, free: 15.91 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001124/0.1468, allocations: 310.8 kB / 0.653 GB, free: 15.6 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.136e-06/0.1468, allocations: 0 / 0.653 GB, free: 15.6 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.398e-06/0.1468, allocations: 0 / 0.653 GB, free: 15.6 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.511e-05/0.1468, allocations: 5.094 kB / 0.653 GB, free: 15.59 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.302e-06/0.1468, allocations: 0 / 0.653 GB, free: 15.59 MB / 462.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.684e-05/0.1469, allocations: 34.23 kB / 0.653 GB, free: 15.55 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.193e-05/0.1469, allocations: 8.703 kB / 0.653 GB, free: 15.55 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.11e-06/0.1469, allocations: 3.984 kB / 0.653 GB, free: 15.54 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.086e-05/0.1469, allocations: 9.828 kB / 0.653 GB, free: 15.54 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.516e-05/0.147, allocations: 0 / 0.653 GB, free: 15.54 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.987e-06/0.147, allocations: 0 / 0.653 GB, free: 15.54 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.075e-05/0.147, allocations: 0 / 0.653 GB, free: 15.54 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.581e-06/0.147, allocations: 0 / 0.653 GB, free: 15.54 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 (1): * Single equations (assignments): 1 * 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 5.557e-05/0.1471, allocations: 115.6 kB / 0.6531 GB, free: 15.41 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.34e-06/0.1471, allocations: 0 / 0.6531 GB, free: 15.41 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.689e-05/0.1472, allocations: 42.42 kB / 0.6532 GB, free: 15.37 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.353e-06/0.1472, allocations: 0 / 0.6532 GB, free: 15.37 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/0.1472, allocations: 4 kB / 0.6532 GB, free: 15.37 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.945e-06/0.1472, allocations: 1.188 kB / 0.6532 GB, free: 15.37 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.722e-05/0.1473, allocations: 145.6 kB / 0.6533 GB, free: 15.18 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.81e-07/0.1473, allocations: 0 / 0.6533 GB, free: 15.18 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.511e-05/0.1473, allocations: 8.594 kB / 0.6533 GB, free: 15.17 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.293e-06/0.1473, allocations: 4 kB / 0.6533 GB, free: 15.16 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.065e-06/0.1473, allocations: 6.016 kB / 0.6533 GB, free: 15.16 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.965e-06/0.1473, allocations: 3.953 kB / 0.6533 GB, free: 15.16 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.21e-07/0.1473, allocations: 0 / 0.6533 GB, free: 15.16 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.543e-05/0.1474, allocations: 55.64 kB / 0.6534 GB, free: 15.09 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.814e-05/0.1474, allocations: 81.05 kB / 0.6535 GB, free: 14.99 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.829e-06/0.1475, allocations: 0 / 0.6535 GB, free: 14.99 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.007e-06/0.1475, allocations: 0 / 0.6535 GB, free: 14.99 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.378e-05/0.1475, allocations: 7.938 kB / 0.6535 GB, free: 14.98 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.014e-06/0.1475, allocations: 0 / 0.6535 GB, free: 14.98 MB / 462.1 MB Notification: Performance of sorting global known variables: time 3.341e-05/0.1475, allocations: 84.09 kB / 0.6536 GB, free: 14.9 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1475, allocations: 0.8438 kB / 0.6536 GB, free: 14.9 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0001882/0.1477, allocations: 12 kB / 0.6536 GB, free: 14.89 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 (1): * Single equations (assignments): 1 * 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.0001503/0.1479, allocations: 107.5 kB / 0.6537 GB, free: 14.77 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 5.591e-05/0.148, allocations: 3.938 kB / 0.6537 GB, free: 14.77 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.403e-06/0.148, allocations: 4 kB / 0.6537 GB, free: 14.76 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 5.63e-06/0.148, allocations: 0 / 0.6537 GB, free: 14.76 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.517e-05/0.1481, allocations: 3.984 kB / 0.6537 GB, free: 14.76 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001607/0.1482, allocations: 75.05 kB / 0.6538 GB, free: 14.66 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002208/0.1485, allocations: 0.6731 MB / 0.6544 GB, free: 13.96 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 2.105e-05/0.1485, allocations: 8.125 kB / 0.6544 GB, free: 13.95 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.979e-05/0.1485, allocations: 7.438 kB / 0.6544 GB, free: 13.94 MB / 462.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1485, allocations: 3.938 kB / 0.6544 GB, free: 13.94 MB / 462.1 MB Notification: Performance of Templates: time 0.002141/0.1507, allocations: 299.9 kB / 0.6547 GB, free: 13.64 MB / 462.1 MB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction.makefile Environment - environmentSimulation: (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction.pipe 2>&1) Environment - environmentSimulation: