Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegStep.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.Functions.Examples.RegStep,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_RegStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.RegStep,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_RegStep",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.001175/0.001174, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.00125/0.00125, allocations: 191.8 kB / 16.25 MB, free: 6.633 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.181/1.181, allocations: 222.9 MB / 239.9 MB, free: 4.535 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001958/0.001958, allocations: 283 kB / 290.3 MB, free: 2.145 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8601/0.8601, allocations: 169.2 MB / 0.4978 GB, free: 14.1 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001584/0.001584, allocations: 95.41 kB / 0.5948 GB, free: 28.2 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1321/0.1337, allocations: 86.97 MB / 0.6797 GB, free: 0.9648 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.RegStep): time 0.001747/0.1355, allocations: 0.6448 MB / 0.6804 GB, free: 336 kB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002057/0.1357, allocations: 51.78 kB / 0.6804 GB, free: 284 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.084e-05/0.1357, allocations: 3.938 kB / 0.6804 GB, free: 280 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 1.352e-05/0.1357, allocations: 0 / 0.6804 GB, free: 280 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 4.638e-06/0.1358, allocations: 4 kB / 0.6804 GB, free: 276 kB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001907/0.136, allocations: 12 kB / 0.6804 GB, free: 264 kB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 3.17e-05/0.136, allocations: 3.984 kB / 0.6804 GB, free: 260 kB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.245e-05/0.1361, allocations: 4 kB / 0.6804 GB, free: 256 kB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.046e-05/0.1361, allocations: 0 / 0.6804 GB, free: 256 kB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.954e-05/0.1361, allocations: 3.984 kB / 0.6804 GB, free: 252 kB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 7.714e-06/0.1361, allocations: 0 / 0.6804 GB, free: 252 kB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.939e-05/0.1362, allocations: 19.98 kB / 0.6805 GB, free: 232 kB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 8.215e-06/0.1362, allocations: 0 / 0.6805 GB, free: 232 kB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 1.281e-05/0.1362, allocations: 0 / 0.6805 GB, free: 232 kB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 7e-05/0.1363, allocations: 23.97 kB / 0.6805 GB, free: 208 kB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.1363, allocations: 0 / 0.6805 GB, free: 208 kB / 478.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.1363, allocations: 3.938 kB / 0.6805 GB, free: 204 kB / 478.1 MB Notification: Performance of Transformations before backend: time 4.308e-06/0.1363, allocations: 0 / 0.6805 GB, free: 204 kB / 478.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.0002933/0.1366, allocations: 307.6 kB / 0.6808 GB, free: 15.85 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.53e-05/0.1367, allocations: 8.031 kB / 0.6808 GB, free: 15.84 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.882e-05/0.1367, allocations: 30.75 kB / 0.6808 GB, free: 15.8 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002275/0.1369, allocations: 24.89 kB / 0.6808 GB, free: 15.78 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.554e-05/0.137, allocations: 172.3 kB / 0.681 GB, free: 15.57 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.997e-06/0.137, allocations: 384 / 0.681 GB, free: 15.57 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.382e-06/0.1371, allocations: 384 / 0.681 GB, free: 15.57 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001175/0.1372, allocations: 38.25 kB / 0.681 GB, free: 15.53 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.293e-06/0.1372, allocations: 3.938 kB / 0.6811 GB, free: 15.52 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.861e-06/0.1372, allocations: 0 / 0.6811 GB, free: 15.52 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.386e-06/0.1372, allocations: 0 / 0.6811 GB, free: 15.52 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.306e-05/0.1373, allocations: 15.92 kB / 0.6811 GB, free: 15.51 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001179/0.1374, allocations: 146 kB / 0.6812 GB, free: 15.32 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.007e-05/0.1375, allocations: 26.59 kB / 0.6812 GB, free: 15.28 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.839e-05/0.1376, allocations: 8.922 kB / 0.6812 GB, free: 15.27 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.842e-05/0.1376, allocations: 7.922 kB / 0.6812 GB, free: 15.26 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.671e-05/0.1376, allocations: 30.56 kB / 0.6813 GB, free: 15.22 MB / 494.1 MB Notification: Performance of pre-optimization done (n=1): time 9.12e-07/0.1376, allocations: 0 / 0.6813 GB, free: 15.22 MB / 494.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002101/0.1378, allocations: 53.56 kB / 0.6813 GB, free: 15.16 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.557e-05/0.1379, allocations: 51.41 kB / 0.6814 GB, free: 15.1 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.144e-05/0.1379, allocations: 93.84 kB / 0.6815 GB, free: 15 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.854e-05/0.1379, allocations: 25.7 kB / 0.6815 GB, free: 14.97 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.219e-05/0.138, allocations: 84.14 kB / 0.6816 GB, free: 14.88 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.622e-05/0.138, allocations: 3.938 kB / 0.6816 GB, free: 14.88 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.704e-05/0.138, allocations: 13.72 kB / 0.6816 GB, free: 14.86 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.188e-05/0.1381, allocations: 315 kB / 0.6819 GB, free: 14.54 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.533e-05/0.1382, allocations: 7.984 kB / 0.6819 GB, free: 14.54 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.608e-05/0.1382, allocations: 4 kB / 0.6819 GB, free: 14.53 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.347e-05/0.1383, allocations: 12.84 kB / 0.6819 GB, free: 14.52 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-06/0.1383, allocations: 0 / 0.6819 GB, free: 14.52 MB / 494.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001109/0.1384, allocations: 53.69 kB / 0.682 GB, free: 14.46 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.149e-05/0.1385, allocations: 4 kB / 0.682 GB, free: 14.45 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.719e-06/0.1385, allocations: 3.938 kB / 0.682 GB, free: 14.45 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.327e-06/0.1385, allocations: 0 / 0.682 GB, free: 14.45 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.388e-05/0.1386, allocations: 7.984 kB / 0.682 GB, free: 14.44 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.667e-06/0.1386, allocations: 0 / 0.682 GB, free: 14.44 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.88e-05/0.1386, allocations: 0 / 0.682 GB, free: 14.44 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.089e-06/0.1386, allocations: 4 kB / 0.682 GB, free: 14.44 MB / 494.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.878e-05/0.1387, allocations: 110.5 kB / 0.6821 GB, free: 14.32 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.257e-06/0.1387, allocations: 0 / 0.6821 GB, free: 14.32 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.62e-05/0.1387, allocations: 14.98 kB / 0.6821 GB, free: 14.3 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.132e-06/0.1387, allocations: 0 / 0.6821 GB, free: 14.3 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.1387, allocations: 4 kB / 0.6821 GB, free: 14.3 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.874e-06/0.1387, allocations: 0 / 0.6821 GB, free: 14.3 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000142/0.1389, allocations: 145.7 kB / 0.6822 GB, free: 14.11 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.41e-07/0.1389, allocations: 0 / 0.6822 GB, free: 14.11 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.385e-05/0.1389, allocations: 11.98 kB / 0.6823 GB, free: 14.1 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/0.1389, allocations: 0 / 0.6823 GB, free: 14.1 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.426e-06/0.139, allocations: 11.94 kB / 0.6823 GB, free: 14.09 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.62e-07/0.139, allocations: 0 / 0.6823 GB, free: 14.09 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.139, allocations: 0 / 0.6823 GB, free: 14.09 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001529/0.1391, allocations: 68.97 kB / 0.6823 GB, free: 14 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.677e-05/0.1392, allocations: 81.09 kB / 0.6824 GB, free: 13.9 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.136e-05/0.1392, allocations: 3.938 kB / 0.6824 GB, free: 13.9 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.198e-05/0.1392, allocations: 4.031 kB / 0.6824 GB, free: 13.89 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.608e-06/0.1392, allocations: 4 kB / 0.6824 GB, free: 13.89 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.976e-06/0.1392, allocations: 0 / 0.6824 GB, free: 13.89 MB / 494.1 MB Notification: Performance of sorting global known variables: time 2.393e-05/0.1393, allocations: 83.22 kB / 0.6825 GB, free: 13.81 MB / 494.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1393, allocations: 0 / 0.6825 GB, free: 13.81 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0001645/0.1394, allocations: 0 / 0.6825 GB, free: 13.81 MB / 494.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 (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.0003685/0.1398, allocations: 0.6124 MB / 0.6831 GB, free: 13.16 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001221/0.1399, allocations: 15.98 kB / 0.6831 GB, free: 13.15 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.14, allocations: 0 / 0.6831 GB, free: 13.15 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 4.033e-05/0.14, allocations: 7.984 kB / 0.6831 GB, free: 13.14 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00012/0.1401, allocations: 7.688 kB / 0.6831 GB, free: 13.14 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002939/0.1404, allocations: 110.9 kB / 0.6832 GB, free: 12.99 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003104/0.1407, allocations: 0.669 MB / 0.6839 GB, free: 12.29 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 3.534e-05/0.1408, allocations: 4 kB / 0.6839 GB, free: 12.29 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.163e-05/0.1408, allocations: 7.438 kB / 0.6839 GB, free: 12.29 MB / 494.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1408, allocations: 0 / 0.6839 GB, free: 12.29 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4581/0.5989, allocations: 0.8648 MB / 0.6847 GB, free: 11.55 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002009/0.5991, allocations: 212.2 kB / 0.6849 GB, free: 11.3 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.765/3.364, allocations: 0 / 0.6849 GB, free: 11.3 MB / 494.1 MB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegStep.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegStep.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegStep.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegStep.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_RegStep_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_RegStep.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegStep.pipe 2>&1)