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.000738/0.000738, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.004147/0.004147, allocations: 170.6 kB / 16.27 MB, free: 6.652 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.153/1.153, allocations: 223.3 MB / 240.3 MB, free: 5.367 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001622/0.001622, allocations: 274.1 kB / 291.7 MB, free: 1.906 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8341/0.8341, allocations: 169.5 MB / 0.5004 GB, free: 14.15 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003525/0.0003525, allocations: 13.78 kB / 0.5988 GB, free: 27.95 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1267/0.1271, allocations: 88.55 MB / 0.6852 GB, free: 14.99 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.RegStep): time 0.0006054/0.1277, allocations: 306 kB / 0.6855 GB, free: 14.69 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002303/0.128, allocations: 52.47 kB / 0.6856 GB, free: 14.64 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.769e-06/0.128, allocations: 0 / 0.6856 GB, free: 14.64 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.134e-05/0.128, allocations: 7.375 kB / 0.6856 GB, free: 14.63 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.807e-06/0.128, allocations: 3.938 kB / 0.6856 GB, free: 14.63 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001691/0.1282, allocations: 11.98 kB / 0.6856 GB, free: 14.62 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 3.038e-05/0.1282, allocations: 4 kB / 0.6856 GB, free: 14.61 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.128e-05/0.1283, allocations: 3.984 kB / 0.6856 GB, free: 14.61 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.421e-05/0.1283, allocations: 4 kB / 0.6856 GB, free: 14.61 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.636e-05/0.1283, allocations: 0 / 0.6856 GB, free: 14.61 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 6.944e-06/0.1283, allocations: 0 / 0.6856 GB, free: 14.61 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.151e-05/0.1284, allocations: 20.48 kB / 0.6856 GB, free: 14.59 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 7.063e-06/0.1284, allocations: 0.5 kB / 0.6856 GB, free: 14.59 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.187e-05/0.1284, allocations: 25.7 kB / 0.6857 GB, free: 14.55 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 6.464e-05/0.1285, allocations: 24.48 kB / 0.6857 GB, free: 14.53 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.066e-06/0.1285, allocations: 0.5625 kB / 0.6857 GB, free: 14.53 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1285, allocations: 0 / 0.6857 GB, free: 14.53 MB / 494.1 MB Notification: Performance of Transformations before backend: time 2.755e-06/0.1285, allocations: 0.625 kB / 0.6857 GB, free: 14.53 MB / 494.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.0001914/0.1287, allocations: 313.5 kB / 0.686 GB, free: 14.18 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.176e-05/0.1288, allocations: 8.031 kB / 0.686 GB, free: 14.17 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.571e-05/0.1288, allocations: 30.75 kB / 0.686 GB, free: 14.13 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000208/0.129, allocations: 17.97 kB / 0.686 GB, free: 14.11 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.194e-05/0.1291, allocations: 164.4 kB / 0.6862 GB, free: 13.91 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.788e-06/0.1291, allocations: 4.875 kB / 0.6862 GB, free: 13.91 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.712e-06/0.1291, allocations: 8.312 kB / 0.6862 GB, free: 13.9 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00011/0.1292, allocations: 36.34 kB / 0.6862 GB, free: 13.86 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.212e-06/0.1293, allocations: 7.875 kB / 0.6863 GB, free: 13.86 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.903e-06/0.1293, allocations: 0 / 0.6863 GB, free: 13.86 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.426e-06/0.1293, allocations: 0 / 0.6863 GB, free: 13.86 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.118e-05/0.1294, allocations: 14.39 kB / 0.6863 GB, free: 13.84 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001052/0.1295, allocations: 146 kB / 0.6864 GB, free: 13.65 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.218e-05/0.1296, allocations: 30.53 kB / 0.6864 GB, free: 13.61 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.482e-05/0.1296, allocations: 5.609 kB / 0.6864 GB, free: 13.61 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.321e-05/0.1296, allocations: 4.719 kB / 0.6864 GB, free: 13.6 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.769e-05/0.1296, allocations: 36.09 kB / 0.6865 GB, free: 13.56 MB / 494.1 MB Notification: Performance of pre-optimization done (n=1): time 7.92e-07/0.1297, allocations: 0 / 0.6865 GB, free: 13.56 MB / 494.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001933/0.1299, allocations: 52.73 kB / 0.6865 GB, free: 13.5 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.683e-05/0.1299, allocations: 51.41 kB / 0.6866 GB, free: 13.44 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.131e-05/0.1299, allocations: 89.86 kB / 0.6867 GB, free: 13.34 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.047e-05/0.1299, allocations: 25.7 kB / 0.6867 GB, free: 13.31 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.924e-05/0.13, allocations: 80.14 kB / 0.6868 GB, free: 13.23 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.315e-05/0.13, allocations: 3.938 kB / 0.6868 GB, free: 13.23 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.964e-05/0.13, allocations: 10.5 kB / 0.6868 GB, free: 13.21 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.007e-05/0.1301, allocations: 324.5 kB / 0.6871 GB, free: 12.89 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.924e-05/0.1302, allocations: 3.938 kB / 0.6871 GB, free: 12.88 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.64e-05/0.1302, allocations: 7.984 kB / 0.6871 GB, free: 12.88 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.077e-05/0.1303, allocations: 14.42 kB / 0.6871 GB, free: 12.86 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/0.1303, allocations: 3.984 kB / 0.6871 GB, free: 12.86 MB / 494.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001101/0.1304, allocations: 39.75 kB / 0.6872 GB, free: 12.81 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.03e-05/0.1304, allocations: 5.875 kB / 0.6872 GB, free: 12.81 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/0.1304, allocations: 7.938 kB / 0.6872 GB, free: 12.8 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.436e-06/0.1304, allocations: 0.5312 kB / 0.6872 GB, free: 12.8 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.438e-05/0.1305, allocations: 0 / 0.6872 GB, free: 12.8 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.437e-06/0.1305, allocations: 4.219 kB / 0.6872 GB, free: 12.8 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.279e-05/0.1306, allocations: 7.984 kB / 0.6872 GB, free: 12.79 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.17e-06/0.1306, allocations: 3.938 kB / 0.6872 GB, free: 12.79 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.307e-05/0.1306, allocations: 106.5 kB / 0.6873 GB, free: 12.67 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.428e-06/0.1306, allocations: 7.984 kB / 0.6873 GB, free: 12.66 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.221e-05/0.1307, allocations: 11.06 kB / 0.6873 GB, free: 12.65 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.785e-06/0.1307, allocations: 0 / 0.6873 GB, free: 12.65 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.968e-06/0.1307, allocations: 7.938 kB / 0.6873 GB, free: 12.64 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.134e-06/0.1307, allocations: 4 kB / 0.6873 GB, free: 12.64 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.423e-05/0.1308, allocations: 145.7 kB / 0.6875 GB, free: 12.45 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.11e-07/0.1308, allocations: 0 / 0.6875 GB, free: 12.45 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.756e-05/0.1308, allocations: 4 kB / 0.6875 GB, free: 12.45 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.282e-06/0.1308, allocations: 0 / 0.6875 GB, free: 12.45 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.454e-06/0.1308, allocations: 3.938 kB / 0.6875 GB, free: 12.44 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-07/0.1308, allocations: 0 / 0.6875 GB, free: 12.44 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.915e-06/0.1309, allocations: 11.92 kB / 0.6875 GB, free: 12.43 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001246/0.131, allocations: 69.03 kB / 0.6875 GB, free: 12.34 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.609e-05/0.131, allocations: 77.11 kB / 0.6876 GB, free: 12.25 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.387e-06/0.131, allocations: 3.938 kB / 0.6876 GB, free: 12.25 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.041e-05/0.1311, allocations: 7.984 kB / 0.6876 GB, free: 12.24 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.047e-06/0.1311, allocations: 3.938 kB / 0.6876 GB, free: 12.23 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.685e-06/0.1311, allocations: 0 / 0.6876 GB, free: 12.23 MB / 494.1 MB Notification: Performance of sorting global known variables: time 2.263e-05/0.1311, allocations: 75.28 kB / 0.6877 GB, free: 12.16 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1311, allocations: 0 / 0.6877 GB, free: 12.16 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.000161/0.1313, allocations: 8.031 kB / 0.6877 GB, free: 12.15 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.0003204/0.1316, allocations: 0.5968 MB / 0.6883 GB, free: 11.52 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001127/0.1317, allocations: 16.02 kB / 0.6883 GB, free: 11.51 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.975e-06/0.1317, allocations: 4 kB / 0.6883 GB, free: 11.5 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 3.967e-05/0.1318, allocations: 7.938 kB / 0.6883 GB, free: 11.5 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001107/0.1319, allocations: 0 / 0.6883 GB, free: 11.5 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002625/0.1322, allocations: 108.4 kB / 0.6884 GB, free: 11.35 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001734/0.1324, allocations: 0.6731 MB / 0.6891 GB, free: 10.65 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 3.397e-05/0.1324, allocations: 8.125 kB / 0.6891 GB, free: 10.64 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.849e-05/0.1324, allocations: 11.38 kB / 0.6891 GB, free: 10.63 MB / 494.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1324, allocations: 0 / 0.6891 GB, free: 10.63 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.577/2.709, allocations: 0.7685 MB / 0.6898 GB, free: 10.01 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00023/2.709, allocations: 208.9 kB / 0.69 GB, free: 9.754 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.875/4.585, allocations: 0 / 0.69 GB, free: 9.754 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)