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.001275/0.001275, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001225/0.001225, allocations: 196.9 kB / 16.53 MB, free: 6.699 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.369/1.369, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002485/0.002484, allocations: 287.2 kB / 290.7 MB, free: 2.008 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.098/1.098, allocations: 178.6 MB / 0.5073 GB, free: 4.594 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002882/0.002882, allocations: 105.5 kB / 0.6066 GB, free: 24.76 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1709/0.1738, allocations: 89.14 MB / 0.6936 GB, free: 4.207 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.RegStep): time 0.001781/0.1756, allocations: 0.5781 MB / 0.6942 GB, free: 3.633 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002449/0.1758, allocations: 51.8 kB / 0.6942 GB, free: 3.582 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.5e-05/0.1759, allocations: 3.938 kB / 0.6942 GB, free: 3.578 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.394e-05/0.1759, allocations: 0 / 0.6942 GB, free: 3.578 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.809e-06/0.1759, allocations: 0 / 0.6942 GB, free: 3.578 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002164/0.1761, allocations: 27.92 kB / 0.6943 GB, free: 3.551 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 3.695e-05/0.1762, allocations: 3.984 kB / 0.6943 GB, free: 3.547 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.59e-05/0.1762, allocations: 3.984 kB / 0.6943 GB, free: 3.543 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.361e-05/0.1762, allocations: 0 / 0.6943 GB, free: 3.543 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.988e-05/0.1763, allocations: 4 kB / 0.6943 GB, free: 3.539 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 9.758e-06/0.1763, allocations: 0 / 0.6943 GB, free: 3.539 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.748e-05/0.1764, allocations: 15.98 kB / 0.6943 GB, free: 3.523 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 8.657e-06/0.1764, allocations: 0 / 0.6943 GB, free: 3.523 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 1.698e-05/0.1764, allocations: 4 kB / 0.6943 GB, free: 3.52 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 8.401e-05/0.1765, allocations: 19.95 kB / 0.6943 GB, free: 3.5 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.1765, allocations: 4 kB / 0.6943 GB, free: 3.496 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.1765, allocations: 0 / 0.6943 GB, free: 3.496 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.551e-06/0.1765, allocations: 0 / 0.6943 GB, free: 3.496 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.0003148/0.1769, allocations: 311.6 kB / 0.6946 GB, free: 3.141 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.497e-05/0.1769, allocations: 12.03 kB / 0.6946 GB, free: 3.129 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.701e-05/0.177, allocations: 30.75 kB / 0.6946 GB, free: 3.09 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002623/0.1772, allocations: 20.91 kB / 0.6947 GB, free: 3.07 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001138/0.1773, allocations: 172.2 kB / 0.6948 GB, free: 2.863 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.025e-05/0.1774, allocations: 4.375 kB / 0.6948 GB, free: 2.859 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.354e-06/0.1774, allocations: 384 / 0.6948 GB, free: 2.859 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001267/0.1775, allocations: 34.25 kB / 0.6949 GB, free: 2.82 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.756e-06/0.1775, allocations: 7.938 kB / 0.6949 GB, free: 2.812 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.915e-06/0.1775, allocations: 0 / 0.6949 GB, free: 2.812 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.228e-06/0.1776, allocations: 0 / 0.6949 GB, free: 2.812 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.084e-05/0.1776, allocations: 7.984 kB / 0.6949 GB, free: 2.805 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001673/0.1778, allocations: 145.7 kB / 0.695 GB, free: 2.613 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.857e-05/0.1779, allocations: 30.53 kB / 0.695 GB, free: 2.574 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.83e-05/0.178, allocations: 8.922 kB / 0.6951 GB, free: 2.562 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.922e-05/0.178, allocations: 0 / 0.6951 GB, free: 2.562 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.585e-05/0.1781, allocations: 38.55 kB / 0.6951 GB, free: 2.516 MB / 494.1 MB Notification: Performance of pre-optimization done (n=1): time 1.273e-06/0.1781, allocations: 0 / 0.6951 GB, free: 2.516 MB / 494.1 MB Notification: Performance of matching and sorting (n=1): time 0.000243/0.1783, allocations: 45.62 kB / 0.6951 GB, free: 2.465 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.242e-05/0.1784, allocations: 55.41 kB / 0.6952 GB, free: 2.398 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.257e-05/0.1784, allocations: 89.86 kB / 0.6953 GB, free: 2.301 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.83e-05/0.1785, allocations: 25.7 kB / 0.6953 GB, free: 2.27 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.698e-05/0.1785, allocations: 92.02 kB / 0.6954 GB, free: 2.176 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.924e-05/0.1785, allocations: 8.172 kB / 0.6954 GB, free: 2.168 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.383e-05/0.1786, allocations: 13.72 kB / 0.6954 GB, free: 2.148 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001373/0.1787, allocations: 315 kB / 0.6957 GB, free: 1.832 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.537e-05/0.1788, allocations: 0 / 0.6957 GB, free: 1.832 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.097e-05/0.1788, allocations: 7.984 kB / 0.6957 GB, free: 1.824 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001008/0.1789, allocations: 16.84 kB / 0.6957 GB, free: 1.805 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.1789, allocations: 0 / 0.6957 GB, free: 1.805 MB / 494.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001261/0.1791, allocations: 45.75 kB / 0.6958 GB, free: 1.754 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.778e-05/0.1791, allocations: 8 kB / 0.6958 GB, free: 1.746 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.546e-06/0.1791, allocations: 7.938 kB / 0.6958 GB, free: 1.738 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.105e-05/0.1791, allocations: 0 / 0.6958 GB, free: 1.738 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.728e-05/0.1792, allocations: 11.92 kB / 0.6958 GB, free: 1.727 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.759e-06/0.1792, allocations: 0 / 0.6958 GB, free: 1.727 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.299e-05/0.1792, allocations: 0 / 0.6958 GB, free: 1.727 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.502e-06/0.1793, allocations: 0 / 0.6958 GB, free: 1.727 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 7.974e-05/0.1793, allocations: 114.4 kB / 0.6959 GB, free: 1.605 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.648e-06/0.1794, allocations: 4.031 kB / 0.6959 GB, free: 1.602 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.872e-05/0.1794, allocations: 11 kB / 0.6959 GB, free: 1.594 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.077e-06/0.1794, allocations: 3.984 kB / 0.6959 GB, free: 1.59 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.987e-06/0.1794, allocations: 0 / 0.6959 GB, free: 1.59 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.885e-06/0.1794, allocations: 0 / 0.6959 GB, free: 1.59 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001196/0.1795, allocations: 149.7 kB / 0.6961 GB, free: 1.395 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.1795, allocations: 4 kB / 0.6961 GB, free: 1.391 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.272e-05/0.1796, allocations: 3.984 kB / 0.6961 GB, free: 1.387 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.392e-06/0.1796, allocations: 0 / 0.6961 GB, free: 1.387 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.094e-05/0.1796, allocations: 7.938 kB / 0.6961 GB, free: 1.379 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.1796, allocations: 4 kB / 0.6961 GB, free: 1.375 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.1796, allocations: 0 / 0.6961 GB, free: 1.375 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001577/0.1798, allocations: 57.12 kB / 0.6961 GB, free: 1.301 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.019e-05/0.1799, allocations: 85.03 kB / 0.6962 GB, free: 1.199 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.589e-05/0.1799, allocations: 7.938 kB / 0.6962 GB, free: 1.191 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.141e-05/0.1799, allocations: 0 / 0.6962 GB, free: 1.191 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.384e-05/0.1799, allocations: 8.031 kB / 0.6962 GB, free: 1.184 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.256e-06/0.1799, allocations: 0 / 0.6962 GB, free: 1.184 MB / 494.1 MB Notification: Performance of sorting global known variables: time 4.813e-05/0.18, allocations: 75.28 kB / 0.6963 GB, free: 1.109 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.18, allocations: 0 / 0.6963 GB, free: 1.109 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0001824/0.1802, allocations: 4 kB / 0.6963 GB, free: 1.105 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.0005546/0.1807, allocations: 0.6066 MB / 0.6969 GB, free: 480 kB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.000161/0.1809, allocations: 15.92 kB / 0.6969 GB, free: 464 kB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.1809, allocations: 3.938 kB / 0.6969 GB, free: 460 kB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 4.759e-05/0.181, allocations: 7.984 kB / 0.6969 GB, free: 452 kB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00015/0.1811, allocations: 3.438 kB / 0.6969 GB, free: 452 kB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003982/0.1815, allocations: 115.8 kB / 0.6971 GB, free: 296 kB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003691/0.1819, allocations: 0.669 MB / 0.6977 GB, free: 15.59 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 4.007e-05/0.182, allocations: 0 / 0.6977 GB, free: 15.59 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.698e-05/0.182, allocations: 7.438 kB / 0.6977 GB, free: 15.59 MB / 0.4981 GB Notification: Performance of SimCode: time 3.11e-07/0.182, allocations: 0 / 0.6977 GB, free: 15.59 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02075/0.2028, allocations: 0.9506 MB / 0.6986 GB, free: 14.72 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.603/7.805, allocations: 4.609 kB / 0.6986 GB, free: 14.71 MB / 0.4981 GB (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)