Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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 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.SpliceFunction,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_SpliceFunction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction,fileNamePrefix="BuildingSystems_BuildingSystems_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.007883/0.007883, allocations: 98.77 kB / 15.73 MB, free: 6.066 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.00177/0.00177, allocations: 196.1 kB / 16.68 MB, free: 5.973 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.39/1.39, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00243/0.00243, allocations: 290.9 kB / 290.8 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.185/1.185, allocations: 178.5 MB / 0.5074 GB, free: 12.84 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002675/0.002675, allocations: 107.8 kB / 0.6944 GB, free: 15.15 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3933/0.396, allocations: 89.11 MB / 0.7814 GB, free: 1.145 MB / 0.545 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction): time 0.001548/0.3976, allocations: 0.5953 MB / 0.782 GB, free: 0.6992 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.001518/0.3991, allocations: 1.245 MB / 0.7832 GB, free: 15.7 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.016e-05/0.3992, allocations: 3.938 kB / 0.7832 GB, free: 15.69 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 1.582e-05/0.3992, allocations: 0 / 0.7832 GB, free: 15.69 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 7.184e-06/0.3992, allocations: 0 / 0.7832 GB, free: 15.69 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004434/0.3997, allocations: 64 kB / 0.7832 GB, free: 15.65 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 4.661e-05/0.3997, allocations: 1.719 kB / 0.7832 GB, free: 15.65 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 5.056e-05/0.3998, allocations: 1.375 kB / 0.7832 GB, free: 15.65 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 2.146e-05/0.3998, allocations: 9.406 kB / 0.7832 GB, free: 15.64 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 4.615e-05/0.3998, allocations: 1.438 kB / 0.7832 GB, free: 15.64 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.021e-05/0.3999, allocations: 4 kB / 0.7833 GB, free: 15.64 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002745/0.4001, allocations: 98.34 kB / 0.7833 GB, free: 15.59 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.349e-05/0.4002, allocations: 5.109 kB / 0.7834 GB, free: 15.59 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 1.94e-05/0.4002, allocations: 0 / 0.7834 GB, free: 15.59 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001605/0.4004, allocations: 58.19 kB / 0.7834 GB, free: 15.56 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.4004, allocations: 0 / 0.7834 GB, free: 15.56 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.483e-06/0.4004, allocations: 1.219 kB / 0.7834 GB, free: 15.56 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 6.292e-06/0.4004, allocations: 0 / 0.7834 GB, free: 15.56 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.0003812/0.4008, allocations: 329.1 kB / 0.7837 GB, free: 15.2 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.881e-05/0.4008, allocations: 10.28 kB / 0.7837 GB, free: 15.2 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.392e-05/0.4009, allocations: 38.75 kB / 0.7838 GB, free: 15.15 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.976e-05/0.4009, allocations: 0.9375 kB / 0.7838 GB, free: 15.15 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001124/0.401, allocations: 165.5 kB / 0.7839 GB, free: 14.95 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.387e-05/0.401, allocations: 4.375 kB / 0.7839 GB, free: 14.95 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.859e-06/0.4011, allocations: 5.438 kB / 0.7839 GB, free: 14.94 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.674e-05/0.4011, allocations: 30.98 kB / 0.784 GB, free: 14.91 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.057e-06/0.4012, allocations: 1.406 kB / 0.784 GB, free: 14.91 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.103e-06/0.4012, allocations: 0 / 0.784 GB, free: 14.91 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.318e-06/0.4012, allocations: 0 / 0.784 GB, free: 14.91 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.912e-05/0.4012, allocations: 5.656 kB / 0.784 GB, free: 14.9 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001542/0.4014, allocations: 147.4 kB / 0.7841 GB, free: 14.71 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 3.969e-05/0.4014, allocations: 24.2 kB / 0.7841 GB, free: 14.68 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.273e-05/0.4014, allocations: 14.53 kB / 0.7842 GB, free: 14.66 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005861/0.402, allocations: 0.5549 MB / 0.7847 GB, free: 14 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.325e-05/0.4021, allocations: 44.23 kB / 0.7847 GB, free: 13.95 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=1): time 1.062e-06/0.4021, allocations: 0 / 0.7847 GB, free: 13.95 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1): time 0.0001315/0.4022, allocations: 34.83 kB / 0.7848 GB, free: 13.91 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.712e-05/0.4023, allocations: 51.41 kB / 0.7848 GB, free: 13.85 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.599e-05/0.4023, allocations: 89.86 kB / 0.7849 GB, free: 13.75 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.361e-05/0.4023, allocations: 27.42 kB / 0.7849 GB, free: 13.72 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 3.601e-05/0.4024, allocations: 80.14 kB / 0.785 GB, free: 13.64 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.691e-05/0.4024, allocations: 4.078 kB / 0.785 GB, free: 13.64 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.74e-05/0.4024, allocations: 16.75 kB / 0.785 GB, free: 13.62 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001255/0.4026, allocations: 314.8 kB / 0.7853 GB, free: 13.3 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.514e-05/0.4026, allocations: 9.469 kB / 0.7853 GB, free: 13.29 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.36e-06/0.4026, allocations: 0 / 0.7853 GB, free: 13.29 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.617e-05/0.4026, allocations: 8.672 kB / 0.7853 GB, free: 13.29 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.372e-06/0.4026, allocations: 3.938 kB / 0.7853 GB, free: 13.28 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1) (initialization): time 5.177e-05/0.4027, allocations: 31.45 kB / 0.7854 GB, free: 13.25 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.494e-05/0.4027, allocations: 15.53 kB / 0.7854 GB, free: 13.24 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.338e-06/0.4027, allocations: 1.125 kB / 0.7854 GB, free: 13.24 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.105e-05/0.4027, allocations: 0 / 0.7854 GB, free: 13.24 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.903e-05/0.4028, allocations: 2.188 kB / 0.7854 GB, free: 13.24 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.318e-06/0.4028, allocations: 0 / 0.7854 GB, free: 13.24 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.559e-05/0.4028, allocations: 5.078 kB / 0.7854 GB, free: 13.24 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.599e-06/0.4028, allocations: 0 / 0.7854 GB, free: 13.24 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.625e-05/0.4029, allocations: 110.9 kB / 0.7855 GB, free: 13.12 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.021e-05/0.4029, allocations: 5 kB / 0.7855 GB, free: 13.12 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.69e-05/0.403, allocations: 41.83 kB / 0.7855 GB, free: 13.08 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.382e-06/0.403, allocations: 1.25 kB / 0.7856 GB, free: 13.08 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.403, allocations: 0 / 0.7856 GB, free: 13.08 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.403, allocations: 3.984 kB / 0.7856 GB, free: 13.07 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001019/0.4032, allocations: 142.9 kB / 0.7857 GB, free: 12.89 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.4032, allocations: 1.312 kB / 0.7857 GB, free: 12.89 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.414e-05/0.4032, allocations: 1.344 kB / 0.7857 GB, free: 12.89 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.967e-06/0.4032, allocations: 3.938 kB / 0.7857 GB, free: 12.88 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.781e-06/0.4032, allocations: 5.25 kB / 0.7857 GB, free: 12.88 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.066e-06/0.4032, allocations: 4 kB / 0.7857 GB, free: 12.88 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.4032, allocations: 1.281 kB / 0.7857 GB, free: 12.88 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.627e-05/0.4033, allocations: 62.72 kB / 0.7858 GB, free: 12.8 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 5.95e-05/0.4034, allocations: 82.08 kB / 0.7858 GB, free: 12.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.059e-05/0.4034, allocations: 0 / 0.7858 GB, free: 12.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.047e-05/0.4034, allocations: 1.188 kB / 0.7858 GB, free: 12.7 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.387e-06/0.4034, allocations: 7.969 kB / 0.7859 GB, free: 12.7 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.315e-06/0.4034, allocations: 0.9062 kB / 0.7859 GB, free: 12.7 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 3.019e-05/0.4035, allocations: 75.28 kB / 0.7859 GB, free: 12.62 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4035, allocations: 1.188 kB / 0.7859 GB, free: 12.62 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002028/0.4037, allocations: 8.859 kB / 0.7859 GB, free: 12.62 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.0004283/0.4041, allocations: 0.6108 MB / 0.7865 GB, free: 12 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 7.219e-05/0.4042, allocations: 7.875 kB / 0.7865 GB, free: 12 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.4042, allocations: 0 / 0.7865 GB, free: 12 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 1.044e-05/0.4042, allocations: 2.594 kB / 0.7865 GB, free: 12 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001285/0.4044, allocations: 8.188 kB / 0.7866 GB, free: 12 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002895/0.4046, allocations: 101.5 kB / 0.7866 GB, free: 11.86 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002784/0.4049, allocations: 0.6705 MB / 0.7873 GB, free: 11.17 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 2.116e-05/0.405, allocations: 5.5 kB / 0.7873 GB, free: 11.16 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.731e-05/0.405, allocations: 9.562 kB / 0.7873 GB, free: 11.16 MB / 0.5606 GB Notification: Performance of SimCode: time 2.4e-07/0.405, allocations: 0 / 0.7873 GB, free: 11.16 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02011/0.4251, allocations: 1.047 MB / 0.7883 GB, free: 10.57 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.644/8.07, allocations: 10.88 kB / 0.7883 GB, free: 10.56 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction_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_SpliceFunction.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction.pipe 2>&1)