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.00803/0.00803, allocations: 96.2 kB / 15.73 MB, free: 6.039 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.002153/0.002153, allocations: 198.6 kB / 16.68 MB, free: 5.969 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.485/1.485, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002627/0.002627, allocations: 285.7 kB / 290.8 MB, free: 1.91 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.094/1.094, allocations: 178.6 MB / 0.5074 GB, free: 4.477 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002762/0.002762, allocations: 95.84 kB / 0.6943 GB, free: 3.566 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4898/0.4926, allocations: 89.14 MB / 0.7814 GB, free: 13.86 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.RegStep): time 0.001648/0.4943, allocations: 0.5943 MB / 0.782 GB, free: 13.48 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0002456/0.4946, allocations: 53.09 kB / 0.782 GB, free: 13.45 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.463e-05/0.4946, allocations: 4 kB / 0.782 GB, free: 13.45 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 1.394e-05/0.4946, allocations: 0 / 0.782 GB, free: 13.45 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 5.12e-06/0.4946, allocations: 0 / 0.782 GB, free: 13.45 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.000203/0.4948, allocations: 16.97 kB / 0.782 GB, free: 13.44 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 4.175e-05/0.4949, allocations: 2.5 kB / 0.782 GB, free: 13.44 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 3.882e-05/0.4949, allocations: 4.875 kB / 0.782 GB, free: 13.44 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 1.139e-05/0.4949, allocations: 0 / 0.782 GB, free: 13.44 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 1.948e-05/0.495, allocations: 2.094 kB / 0.782 GB, free: 13.44 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 7.935e-06/0.495, allocations: 0 / 0.782 GB, free: 13.44 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001015/0.4951, allocations: 24.17 kB / 0.7821 GB, free: 13.43 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 8.536e-06/0.4951, allocations: 3.938 kB / 0.7821 GB, free: 13.43 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 1.305e-05/0.4951, allocations: 5.219 kB / 0.7821 GB, free: 13.42 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 7.815e-05/0.4952, allocations: 15.95 kB / 0.7821 GB, free: 13.42 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.437e-06/0.4952, allocations: 0 / 0.7821 GB, free: 13.42 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.193e-06/0.4952, allocations: 0 / 0.7821 GB, free: 13.42 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.879e-06/0.4952, allocations: 0 / 0.7821 GB, free: 13.42 MB / 0.5606 GB 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.0002965/0.4955, allocations: 315.9 kB / 0.7824 GB, free: 13.07 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.562e-05/0.4956, allocations: 10.72 kB / 0.7824 GB, free: 13.07 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.545e-05/0.4956, allocations: 30.75 kB / 0.7824 GB, free: 13.03 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002317/0.4958, allocations: 21.25 kB / 0.7824 GB, free: 13.03 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001073/0.496, allocations: 168.2 kB / 0.7826 GB, free: 12.83 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.928e-06/0.496, allocations: 384 / 0.7826 GB, free: 12.83 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.722e-06/0.496, allocations: 384 / 0.7826 GB, free: 12.83 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001288/0.4961, allocations: 35.59 kB / 0.7826 GB, free: 12.8 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.057e-06/0.4961, allocations: 3.938 kB / 0.7826 GB, free: 12.79 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.633e-06/0.4962, allocations: 0 / 0.7826 GB, free: 12.79 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.131e-06/0.4962, allocations: 0 / 0.7826 GB, free: 12.79 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.094e-05/0.4963, allocations: 18.97 kB / 0.7827 GB, free: 12.79 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001543/0.4964, allocations: 143 kB / 0.7828 GB, free: 12.6 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 7.932e-05/0.4965, allocations: 26.3 kB / 0.7828 GB, free: 12.57 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.346e-05/0.4966, allocations: 8.641 kB / 0.7828 GB, free: 12.56 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.933e-05/0.4966, allocations: 1.891 kB / 0.7828 GB, free: 12.56 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.595e-05/0.4966, allocations: 34.56 kB / 0.7829 GB, free: 12.52 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=1): time 1.022e-06/0.4966, allocations: 7.406 kB / 0.7829 GB, free: 12.52 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1): time 0.0002481/0.4969, allocations: 49.3 kB / 0.7829 GB, free: 12.48 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.239e-05/0.4969, allocations: 51.41 kB / 0.783 GB, free: 12.41 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.526e-05/0.497, allocations: 94.55 kB / 0.7831 GB, free: 12.31 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.712e-05/0.497, allocations: 27.3 kB / 0.7831 GB, free: 12.28 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 3.536e-05/0.4971, allocations: 84.14 kB / 0.7832 GB, free: 12.2 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.286e-05/0.4971, allocations: 4.078 kB / 0.7832 GB, free: 12.19 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.169e-05/0.4971, allocations: 17.33 kB / 0.7832 GB, free: 12.17 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001586/0.4973, allocations: 312.1 kB / 0.7835 GB, free: 11.86 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.278e-05/0.4974, allocations: 5.125 kB / 0.7835 GB, free: 11.86 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.014e-05/0.4974, allocations: 5.781 kB / 0.7835 GB, free: 11.86 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001004/0.4975, allocations: 13.84 kB / 0.7835 GB, free: 11.85 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.929e-06/0.4975, allocations: 13.16 kB / 0.7835 GB, free: 11.84 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001266/0.4977, allocations: 43.81 kB / 0.7836 GB, free: 11.8 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.161e-05/0.4977, allocations: 6.266 kB / 0.7836 GB, free: 11.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.813e-06/0.4977, allocations: 3.938 kB / 0.7836 GB, free: 11.8 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.065e-05/0.4977, allocations: 0 / 0.7836 GB, free: 11.8 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.749e-05/0.4978, allocations: 4.281 kB / 0.7836 GB, free: 11.8 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.669e-06/0.4978, allocations: 1.953 kB / 0.7836 GB, free: 11.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.141e-05/0.4978, allocations: 2.016 kB / 0.7836 GB, free: 11.8 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.331e-06/0.4978, allocations: 0.7344 kB / 0.7836 GB, free: 11.8 MB / 0.5606 GB 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.311e-05/0.4979, allocations: 112 kB / 0.7837 GB, free: 11.68 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.655e-06/0.4979, allocations: 1.344 kB / 0.7837 GB, free: 11.68 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.797e-05/0.498, allocations: 7.766 kB / 0.7837 GB, free: 11.68 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.152e-06/0.498, allocations: 0 / 0.7837 GB, free: 11.68 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/0.498, allocations: 0.875 kB / 0.7837 GB, free: 11.68 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.415e-06/0.498, allocations: 0.5625 kB / 0.7837 GB, free: 11.68 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001072/0.4981, allocations: 145.4 kB / 0.7838 GB, free: 11.49 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-06/0.4981, allocations: 0.8438 kB / 0.7838 GB, free: 11.49 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.516e-05/0.4982, allocations: 11.92 kB / 0.7839 GB, free: 11.48 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.402e-06/0.4982, allocations: 1.719 kB / 0.7839 GB, free: 11.48 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.746e-06/0.4982, allocations: 4.641 kB / 0.7839 GB, free: 11.48 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.875e-06/0.4982, allocations: 3.938 kB / 0.7839 GB, free: 11.48 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.4982, allocations: 1.031 kB / 0.7839 GB, free: 11.48 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001446/0.4983, allocations: 65.62 kB / 0.7839 GB, free: 11.41 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 4.345e-05/0.4984, allocations: 81.84 kB / 0.784 GB, free: 11.31 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.22e-05/0.4984, allocations: 5.25 kB / 0.784 GB, free: 11.31 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.218e-05/0.4985, allocations: 2.453 kB / 0.784 GB, free: 11.31 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.295e-05/0.4985, allocations: 1.125 kB / 0.784 GB, free: 11.31 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.637e-06/0.4985, allocations: 4.641 kB / 0.784 GB, free: 11.3 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 3.219e-05/0.4985, allocations: 79.28 kB / 0.7841 GB, free: 11.23 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4985, allocations: 1.312 kB / 0.7841 GB, free: 11.23 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0001698/0.4987, allocations: 5.25 kB / 0.7841 GB, free: 11.22 MB / 0.5606 GB 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.0004581/0.4992, allocations: 0.6091 MB / 0.7847 GB, free: 10.62 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0001451/0.4993, allocations: 12.98 kB / 0.7847 GB, free: 10.62 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 5.29e-06/0.4993, allocations: 4 kB / 0.7847 GB, free: 10.61 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 4.916e-05/0.4994, allocations: 11.42 kB / 0.7847 GB, free: 10.61 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001342/0.4995, allocations: 1.562 kB / 0.7847 GB, free: 10.61 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003437/0.4999, allocations: 104.3 kB / 0.7848 GB, free: 10.48 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003261/0.5002, allocations: 0.6759 MB / 0.7855 GB, free: 9.781 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 3.273e-05/0.5002, allocations: 9.984 kB / 0.7855 GB, free: 9.773 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.82e-05/0.5003, allocations: 7.438 kB / 0.7855 GB, free: 9.766 MB / 0.5606 GB Notification: Performance of SimCode: time 2.31e-07/0.5003, allocations: 0 / 0.7855 GB, free: 9.766 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02281/0.5231, allocations: 0.9648 MB / 0.7864 GB, free: 9.418 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.565/8.088, allocations: 8.078 kB / 0.7864 GB, free: 9.414 MB / 0.5606 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 & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegStep_res.csv --start-time -1 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_RegStep.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegStep.pipe 2>&1)