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.005546/0.005546, allocations: 102.4 kB / 15.73 MB, free: 6.023 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.001407/0.001407, allocations: 195.9 kB / 16.67 MB, free: 5.938 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.41/1.41, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002527/0.002527, allocations: 292.1 kB / 290.8 MB, free: 14.42 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9987/0.9987, allocations: 169.2 MB / 0.4983 GB, free: 4.426 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002889/0.002889, allocations: 99.84 kB / 0.681 GB, free: 7.406 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.399/0.4019, allocations: 86.97 MB / 0.7659 GB, free: 3.84 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.RegStep): time 0.001717/0.4037, allocations: 0.5744 MB / 0.7665 GB, free: 3.27 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0002554/0.4039, allocations: 51.78 kB / 0.7666 GB, free: 3.219 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.632e-05/0.404, allocations: 0 / 0.7666 GB, free: 3.219 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 1.428e-05/0.404, allocations: 0 / 0.7666 GB, free: 3.219 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 5.74e-06/0.404, allocations: 0 / 0.7666 GB, free: 3.219 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002133/0.4042, allocations: 23.92 kB / 0.7666 GB, free: 3.195 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 3.802e-05/0.4043, allocations: 3.984 kB / 0.7666 GB, free: 3.191 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 4.749e-05/0.4043, allocations: 4 kB / 0.7666 GB, free: 3.188 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 1.404e-05/0.4044, allocations: 4 kB / 0.7666 GB, free: 3.184 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 1.837e-05/0.4044, allocations: 0 / 0.7666 GB, free: 3.184 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 8.035e-06/0.4044, allocations: 0 / 0.7666 GB, free: 3.184 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001001/0.4045, allocations: 19.97 kB / 0.7666 GB, free: 3.164 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 1.197e-05/0.4045, allocations: 7.938 kB / 0.7666 GB, free: 3.156 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 1.372e-05/0.4045, allocations: 3.938 kB / 0.7666 GB, free: 3.152 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 8.311e-05/0.4046, allocations: 15.97 kB / 0.7666 GB, free: 3.137 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.4046, allocations: 4 kB / 0.7666 GB, free: 3.133 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.363e-06/0.4046, allocations: 0 / 0.7666 GB, free: 3.133 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 4.398e-06/0.4046, allocations: 0 / 0.7666 GB, free: 3.133 MB / 0.5294 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.0003396/0.405, allocations: 315.3 kB / 0.7669 GB, free: 2.777 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.359e-05/0.405, allocations: 12.06 kB / 0.767 GB, free: 2.766 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.164e-05/0.4051, allocations: 30.75 kB / 0.767 GB, free: 2.727 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002554/0.4054, allocations: 20.89 kB / 0.767 GB, free: 2.707 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001197/0.4055, allocations: 160.4 kB / 0.7672 GB, free: 2.512 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.258e-05/0.4055, allocations: 4.375 kB / 0.7672 GB, free: 2.508 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.178e-05/0.4055, allocations: 4.375 kB / 0.7672 GB, free: 2.504 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001399/0.4057, allocations: 38.25 kB / 0.7672 GB, free: 2.461 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.264e-05/0.4057, allocations: 3.938 kB / 0.7672 GB, free: 2.457 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.075e-06/0.4057, allocations: 3.938 kB / 0.7672 GB, free: 2.453 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.017e-06/0.4057, allocations: 0 / 0.7672 GB, free: 2.453 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.668e-05/0.4058, allocations: 7.984 kB / 0.7672 GB, free: 2.445 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001623/0.406, allocations: 157.7 kB / 0.7674 GB, free: 2.242 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 7.755e-05/0.4061, allocations: 14.64 kB / 0.7674 GB, free: 2.219 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.127e-05/0.4061, allocations: 12.84 kB / 0.7674 GB, free: 2.203 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 2.098e-05/0.4061, allocations: 4 kB / 0.7674 GB, free: 2.199 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.638e-05/0.4062, allocations: 34.56 kB / 0.7674 GB, free: 2.156 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=1): time 1.132e-06/0.4062, allocations: 0 / 0.7674 GB, free: 2.156 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1): time 0.0002482/0.4064, allocations: 57.55 kB / 0.7675 GB, free: 2.094 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.104e-05/0.4065, allocations: 51.41 kB / 0.7675 GB, free: 2.031 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.964e-05/0.4065, allocations: 89.86 kB / 0.7676 GB, free: 1.934 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 1.695e-05/0.4066, allocations: 29.64 kB / 0.7676 GB, free: 1.898 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 4.016e-05/0.4066, allocations: 80.14 kB / 0.7677 GB, free: 1.816 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 3.608e-05/0.4066, allocations: 3.953 kB / 0.7677 GB, free: 1.812 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.424e-05/0.4067, allocations: 17.72 kB / 0.7677 GB, free: 1.789 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001307/0.4068, allocations: 315 kB / 0.768 GB, free: 1.473 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.911e-05/0.4069, allocations: 7.984 kB / 0.7681 GB, free: 1.465 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.582e-05/0.4069, allocations: 0 / 0.7681 GB, free: 1.465 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.232e-05/0.407, allocations: 20.78 kB / 0.7681 GB, free: 1.441 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.407, allocations: 0 / 0.7681 GB, free: 1.441 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001235/0.4072, allocations: 41.75 kB / 0.7681 GB, free: 1.395 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 2.128e-05/0.4072, allocations: 11.98 kB / 0.7681 GB, free: 1.383 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.173e-06/0.4072, allocations: 3.938 kB / 0.7681 GB, free: 1.379 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.426e-05/0.4072, allocations: 0 / 0.7681 GB, free: 1.379 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.372e-05/0.4073, allocations: 4 kB / 0.7681 GB, free: 1.375 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5e-06/0.4073, allocations: 0 / 0.7681 GB, free: 1.375 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.486e-05/0.4073, allocations: 0 / 0.7681 GB, free: 1.375 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.023e-05/0.4074, allocations: 7.938 kB / 0.7681 GB, free: 1.367 MB / 0.5294 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 8.115e-05/0.4075, allocations: 113.9 kB / 0.7682 GB, free: 1.246 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.127e-06/0.4075, allocations: 4 kB / 0.7683 GB, free: 1.242 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.33e-05/0.4075, allocations: 7.062 kB / 0.7683 GB, free: 1.238 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.293e-06/0.4075, allocations: 0 / 0.7683 GB, free: 1.238 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.4075, allocations: 0 / 0.7683 GB, free: 1.238 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.044e-06/0.4075, allocations: 0 / 0.7683 GB, free: 1.238 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001188/0.4076, allocations: 151.4 kB / 0.7684 GB, free: 1.043 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.442e-06/0.4077, allocations: 0 / 0.7684 GB, free: 1.043 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.275e-05/0.4077, allocations: 0 / 0.7684 GB, free: 1.043 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.18e-06/0.4077, allocations: 0 / 0.7684 GB, free: 1.043 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.707e-06/0.4077, allocations: 11.88 kB / 0.7684 GB, free: 1.031 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.4077, allocations: 4 kB / 0.7684 GB, free: 1.027 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.4077, allocations: 0 / 0.7684 GB, free: 1.027 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001484/0.4079, allocations: 65.11 kB / 0.7685 GB, free: 0.9453 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 4.589e-05/0.408, allocations: 77.11 kB / 0.7686 GB, free: 0.8516 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.353e-05/0.408, allocations: 7.938 kB / 0.7686 GB, free: 0.8438 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.322e-05/0.408, allocations: 0 / 0.7686 GB, free: 0.8438 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.337e-06/0.408, allocations: 4.031 kB / 0.7686 GB, free: 0.8398 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.343e-06/0.408, allocations: 4 kB / 0.7686 GB, free: 0.8359 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 3.427e-05/0.4081, allocations: 79.22 kB / 0.7686 GB, free: 0.7578 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4081, allocations: 4 kB / 0.7686 GB, free: 0.7539 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0002546/0.4083, allocations: 0 / 0.7686 GB, free: 0.7539 MB / 0.5294 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.0004873/0.4088, allocations: 0.6085 MB / 0.7692 GB, free: 116 kB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0001504/0.409, allocations: 15.98 kB / 0.7693 GB, free: 100 kB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.983e-06/0.409, allocations: 0 / 0.7693 GB, free: 100 kB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 4.342e-05/0.4091, allocations: 7.984 kB / 0.7693 GB, free: 92 kB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001726/0.4092, allocations: 10.69 kB / 0.7693 GB, free: 84 kB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004065/0.4097, allocations: 114.8 kB / 0.7694 GB, free: 15.93 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002853/0.4099, allocations: 0.669 MB / 0.77 GB, free: 15.23 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 3.475e-05/0.41, allocations: 3.984 kB / 0.77 GB, free: 15.23 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.955e-05/0.41, allocations: 11.42 kB / 0.7701 GB, free: 15.22 MB / 0.545 GB Notification: Performance of SimCode: time 2.81e-07/0.41, allocations: 4 kB / 0.7701 GB, free: 15.21 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02724/0.4373, allocations: 0.9467 MB / 0.771 GB, free: 14.38 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.69/8.127, allocations: 10.69 kB / 0.771 GB, free: 14.37 MB / 0.545 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)