Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Buildings.Utilities.Math.Functions.Examples.SpliceFunction,fileNamePrefix="Buildings_8_Buildings_Utilities_Math_Functions_Examples_SpliceFunction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.SpliceFunction,fileNamePrefix="Buildings_8_Buildings_Utilities_Math_Functions_Examples_SpliceFunction",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.0009328/0.0009328, allocations: 98.11 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.005706/0.005706, allocations: 172.4 kB / 16.27 MB, free: 6.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.747/1.747, allocations: 205.4 MB / 222.4 MB, free: 5.57 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.689/1.689, allocations: 292.7 MB / 0.5502 GB, free: 14.45 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005429/0.000543, allocations: 16.69 kB / 0.6744 GB, free: 25.68 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2701/0.2706, allocations: 116.3 MB / 0.788 GB, free: 11.47 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunction): time 0.0008084/0.2715, allocations: 331.5 kB / 0.7883 GB, free: 11.14 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001756/0.2733, allocations: 1.262 MB / 0.7896 GB, free: 9.867 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.296e-05/0.2733, allocations: 0 / 0.7896 GB, free: 9.867 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 1.313e-05/0.2733, allocations: 7.875 kB / 0.7896 GB, free: 9.859 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 5.62e-06/0.2733, allocations: 0 / 0.7896 GB, free: 9.859 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003429/0.2737, allocations: 51.88 kB / 0.7896 GB, free: 9.809 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 3.964e-05/0.2737, allocations: 0 / 0.7896 GB, free: 9.809 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 3.941e-05/0.2738, allocations: 0 / 0.7896 GB, free: 9.809 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 1.684e-05/0.2738, allocations: 8 kB / 0.7896 GB, free: 9.801 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 4.769e-05/0.2739, allocations: 0 / 0.7896 GB, free: 9.801 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 8.696e-06/0.2739, allocations: 3.938 kB / 0.7896 GB, free: 9.797 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000237/0.2741, allocations: 91.89 kB / 0.7897 GB, free: 9.707 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 8.646e-06/0.2741, allocations: 0 / 0.7897 GB, free: 9.707 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 3.068e-05/0.2742, allocations: 29.7 kB / 0.7897 GB, free: 9.672 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001333/0.2743, allocations: 47.94 kB / 0.7898 GB, free: 9.625 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.2743, allocations: 4 kB / 0.7898 GB, free: 9.621 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.473e-06/0.2743, allocations: 0 / 0.7898 GB, free: 9.621 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.849e-06/0.2744, allocations: 0 / 0.7898 GB, free: 9.621 MB / 0.6075 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.0003439/0.2747, allocations: 323.6 kB / 0.7901 GB, free: 9.258 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.561e-05/0.2748, allocations: 8.031 kB / 0.7901 GB, free: 9.25 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.039e-05/0.2748, allocations: 30.75 kB / 0.7901 GB, free: 9.211 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.254e-05/0.2748, allocations: 4.875 kB / 0.7901 GB, free: 9.207 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.006e-05/0.2749, allocations: 168.3 kB / 0.7903 GB, free: 9.004 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.728e-06/0.2749, allocations: 384 / 0.7903 GB, free: 9.004 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.985e-06/0.275, allocations: 8.375 kB / 0.7903 GB, free: 8.996 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.222e-05/0.2751, allocations: 37.81 kB / 0.7903 GB, free: 8.953 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.492e-06/0.2751, allocations: 0 / 0.7903 GB, free: 8.953 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.095e-06/0.2751, allocations: 0 / 0.7903 GB, free: 8.953 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.358e-06/0.2751, allocations: 0 / 0.7903 GB, free: 8.953 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.073e-05/0.2751, allocations: 4 kB / 0.7903 GB, free: 8.949 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001458/0.2753, allocations: 141.7 kB / 0.7905 GB, free: 8.762 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 4.409e-05/0.2753, allocations: 22.61 kB / 0.7905 GB, free: 8.73 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.789e-05/0.2753, allocations: 12.86 kB / 0.7905 GB, free: 8.715 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005259/0.2759, allocations: 0.5583 MB / 0.7911 GB, free: 8.027 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.436e-05/0.2759, allocations: 34.5 kB / 0.7911 GB, free: 7.984 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=1): time 9.62e-07/0.2759, allocations: 0 / 0.7911 GB, free: 7.984 MB / 0.6075 GB Notification: Performance of matching and sorting (n=1): time 0.0001295/0.276, allocations: 33.7 kB / 0.7911 GB, free: 7.945 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.299e-05/0.2761, allocations: 59.53 kB / 0.7912 GB, free: 7.875 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.685e-05/0.2761, allocations: 89.86 kB / 0.7913 GB, free: 7.777 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.086e-05/0.2761, allocations: 25.7 kB / 0.7913 GB, free: 7.746 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 2.366e-05/0.2762, allocations: 80.14 kB / 0.7914 GB, free: 7.664 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 3.12e-05/0.2762, allocations: 7.844 kB / 0.7914 GB, free: 7.656 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.491e-05/0.2762, allocations: 13.7 kB / 0.7914 GB, free: 7.637 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001036/0.2764, allocations: 310.8 kB / 0.7917 GB, free: 7.324 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.01e-05/0.2764, allocations: 4 kB / 0.7917 GB, free: 7.32 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.643e-06/0.2764, allocations: 4 kB / 0.7917 GB, free: 7.316 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.745e-05/0.2764, allocations: 12.86 kB / 0.7917 GB, free: 7.301 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.2764, allocations: 0 / 0.7917 GB, free: 7.301 MB / 0.6075 GB Notification: Performance of matching and sorting (n=1) (initialization): time 5.136e-05/0.2765, allocations: 29.7 kB / 0.7917 GB, free: 7.266 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.47e-05/0.2765, allocations: 7.938 kB / 0.7917 GB, free: 7.258 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.949e-06/0.2765, allocations: 0 / 0.7917 GB, free: 7.258 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.285e-05/0.2765, allocations: 4 kB / 0.7917 GB, free: 7.254 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.714e-05/0.2766, allocations: 7.922 kB / 0.7918 GB, free: 7.246 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.32e-06/0.2766, allocations: 3.938 kB / 0.7918 GB, free: 7.242 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.09e-05/0.2766, allocations: 4.094 kB / 0.7918 GB, free: 7.238 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.789e-06/0.2766, allocations: 0 / 0.7918 GB, free: 7.238 MB / 0.6075 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 6.523e-05/0.2767, allocations: 110.1 kB / 0.7919 GB, free: 7.121 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.111e-05/0.2767, allocations: 7.875 kB / 0.7919 GB, free: 7.113 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.453e-05/0.2768, allocations: 40.81 kB / 0.7919 GB, free: 7.062 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.497e-06/0.2768, allocations: 4 kB / 0.7919 GB, free: 7.059 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.2768, allocations: 0 / 0.7919 GB, free: 7.059 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.2768, allocations: 12.02 kB / 0.7919 GB, free: 7.047 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.436e-05/0.2769, allocations: 145.6 kB / 0.7921 GB, free: 6.855 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-06/0.2769, allocations: 0 / 0.7921 GB, free: 6.855 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.465e-05/0.277, allocations: 0 / 0.7921 GB, free: 6.855 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.651e-06/0.277, allocations: 7.938 kB / 0.7921 GB, free: 6.848 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.19e-06/0.277, allocations: 0 / 0.7921 GB, free: 6.848 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.277, allocations: 0 / 0.7921 GB, free: 6.848 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.649e-06/0.277, allocations: 3.984 kB / 0.7921 GB, free: 6.844 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.428e-05/0.2771, allocations: 61.08 kB / 0.7921 GB, free: 6.766 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.28e-05/0.2771, allocations: 85.05 kB / 0.7922 GB, free: 6.664 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.348e-06/0.2771, allocations: 0 / 0.7922 GB, free: 6.664 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.687e-06/0.2771, allocations: 0 / 0.7922 GB, free: 6.664 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.456e-05/0.2771, allocations: 3.984 kB / 0.7922 GB, free: 6.66 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.004e-06/0.2772, allocations: 0 / 0.7922 GB, free: 6.66 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 2.901e-05/0.2772, allocations: 75.28 kB / 0.7923 GB, free: 6.586 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2772, allocations: 0 / 0.7923 GB, free: 6.586 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0001879/0.2774, allocations: 8 kB / 0.7923 GB, free: 6.578 MB / 0.6075 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.0003873/0.2778, allocations: 0.6046 MB / 0.7929 GB, free: 5.941 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 5.94e-05/0.2778, allocations: 4 kB / 0.7929 GB, free: 5.938 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.2779, allocations: 0 / 0.7929 GB, free: 5.938 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 9.247e-06/0.2779, allocations: 8 kB / 0.7929 GB, free: 5.93 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001242/0.278, allocations: 4.156 kB / 0.7929 GB, free: 5.926 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002739/0.2783, allocations: 112.3 kB / 0.793 GB, free: 5.777 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002268/0.2785, allocations: 0.6692 MB / 0.7937 GB, free: 5.082 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 2.066e-05/0.2785, allocations: 0 / 0.7937 GB, free: 5.082 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.631e-05/0.2786, allocations: 7.438 kB / 0.7937 GB, free: 5.074 MB / 0.6075 GB Notification: Performance of SimCode: time 3.196e-06/0.2786, allocations: 4 kB / 0.7937 GB, free: 5.07 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.009886/0.2885, allocations: 0.8345 MB / 0.7945 GB, free: 4.363 MB / 0.6075 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001896/0.2887, allocations: 216 kB / 0.7947 GB, free: 4.102 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.6/1.889, allocations: 0 / 0.7947 GB, free: 4.102 MB / 0.6075 GB (rm -f Buildings_8_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.pipe ; mkfifo Buildings_8_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.pipe ; head -c 1048576 < Buildings_8_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.pipe >> ../files/Buildings_8_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Utilities_Math_Functions_Examples_SpliceFunction_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Utilities_Math_Functions_Examples_SpliceFunction.fmu > Buildings_8_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.pipe 2>&1)