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.005698/0.005698, allocations: 101.1 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.001245/0.001245, allocations: 196.8 kB / 16.68 MB, free: 5.965 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.297/1.297, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002194/0.002194, allocations: 290.5 kB / 290.8 MB, free: 14.43 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.912/0.912, allocations: 169.3 MB / 0.4983 GB, free: 4.395 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001732/0.001732, allocations: 99.86 kB / 0.681 GB, free: 7.398 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.436/0.4378, allocations: 86.98 MB / 0.7659 GB, free: 3.824 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction): time 0.001709/0.4395, allocations: 0.5705 MB / 0.7665 GB, free: 3.258 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001567/0.4411, allocations: 1.252 MB / 0.7677 GB, free: 1.988 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.523e-05/0.4411, allocations: 4 kB / 0.7677 GB, free: 1.984 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 1.161e-05/0.4412, allocations: 0 / 0.7677 GB, free: 1.984 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 4.809e-06/0.4412, allocations: 0 / 0.7677 GB, free: 1.984 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003822/0.4416, allocations: 67.75 kB / 0.7678 GB, free: 1.918 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 3.663e-05/0.4416, allocations: 0 / 0.7678 GB, free: 1.918 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 4.109e-05/0.4417, allocations: 7.984 kB / 0.7678 GB, free: 1.91 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 1.366e-05/0.4417, allocations: 4 kB / 0.7678 GB, free: 1.906 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 3.586e-05/0.4417, allocations: 3.938 kB / 0.7678 GB, free: 1.902 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 7.564e-06/0.4418, allocations: 0 / 0.7678 GB, free: 1.902 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002257/0.442, allocations: 103.8 kB / 0.7679 GB, free: 1.801 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 9.107e-06/0.442, allocations: 0 / 0.7679 GB, free: 1.801 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 1.644e-05/0.442, allocations: 0 / 0.7679 GB, free: 1.801 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0001354/0.4422, allocations: 59.86 kB / 0.768 GB, free: 1.742 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.449e-06/0.4422, allocations: 0 / 0.768 GB, free: 1.742 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.503e-06/0.4422, allocations: 0 / 0.768 GB, free: 1.742 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 4.969e-06/0.4422, allocations: 4 kB / 0.768 GB, free: 1.738 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.0002881/0.4425, allocations: 334.4 kB / 0.7683 GB, free: 1.367 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.769e-05/0.4425, allocations: 8.031 kB / 0.7683 GB, free: 1.359 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.23e-05/0.4426, allocations: 34.75 kB / 0.7683 GB, free: 1.316 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.221e-05/0.4426, allocations: 4.938 kB / 0.7683 GB, free: 1.312 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.52e-05/0.4427, allocations: 160.4 kB / 0.7685 GB, free: 1.117 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.678e-06/0.4427, allocations: 384 / 0.7685 GB, free: 1.117 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.943e-06/0.4427, allocations: 384 / 0.7685 GB, free: 1.117 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.249e-05/0.4428, allocations: 29.83 kB / 0.7685 GB, free: 1.082 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.302e-06/0.4428, allocations: 7.938 kB / 0.7685 GB, free: 1.074 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.643e-06/0.4428, allocations: 4 kB / 0.7685 GB, free: 1.07 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.097e-06/0.4428, allocations: 0 / 0.7685 GB, free: 1.07 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.991e-05/0.4429, allocations: 3.984 kB / 0.7685 GB, free: 1.066 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001275/0.443, allocations: 147.5 kB / 0.7687 GB, free: 0.875 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 3.57e-05/0.443, allocations: 18.61 kB / 0.7687 GB, free: 0.8477 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.422e-05/0.4431, allocations: 4.859 kB / 0.7687 GB, free: 0.8398 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004989/0.4436, allocations: 0.5662 MB / 0.7692 GB, free: 148 kB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.299e-05/0.4436, allocations: 38.5 kB / 0.7693 GB, free: 100 kB / 0.5294 GB Notification: Performance of pre-optimization done (n=1): time 2.565e-06/0.4436, allocations: 0 / 0.7693 GB, free: 100 kB / 0.5294 GB Notification: Performance of matching and sorting (n=1): time 0.0001221/0.4437, allocations: 33.64 kB / 0.7693 GB, free: 60 kB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.257e-05/0.4438, allocations: 51.41 kB / 0.7694 GB, free: 16 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.49e-05/0.4438, allocations: 89.98 kB / 0.7695 GB, free: 15.9 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.057e-05/0.4438, allocations: 33.69 kB / 0.7695 GB, free: 15.86 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 2.287e-05/0.4439, allocations: 84.14 kB / 0.7696 GB, free: 15.77 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 2.661e-05/0.4439, allocations: 7.906 kB / 0.7696 GB, free: 15.77 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.636e-05/0.4439, allocations: 9.719 kB / 0.7696 GB, free: 15.75 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 9.904e-05/0.444, allocations: 310.8 kB / 0.7699 GB, free: 15.44 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.157e-05/0.444, allocations: 4 kB / 0.7699 GB, free: 15.43 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.272e-06/0.4441, allocations: 0 / 0.7699 GB, free: 15.43 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.843e-05/0.4441, allocations: 16.86 kB / 0.7699 GB, free: 15.41 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.4441, allocations: 0 / 0.7699 GB, free: 15.41 MB / 0.545 GB Notification: Performance of matching and sorting (n=1) (initialization): time 5.767e-05/0.4442, allocations: 45.61 kB / 0.7699 GB, free: 15.36 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 3.262e-05/0.4442, allocations: 7.938 kB / 0.7699 GB, free: 15.36 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.208e-06/0.4442, allocations: 3.938 kB / 0.77 GB, free: 15.35 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.361e-05/0.4442, allocations: 4 kB / 0.77 GB, free: 15.35 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.056e-05/0.4443, allocations: 0 / 0.77 GB, free: 15.35 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.739e-06/0.4443, allocations: 0 / 0.77 GB, free: 15.35 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.045e-05/0.4443, allocations: 0 / 0.77 GB, free: 15.35 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.479e-06/0.4443, allocations: 0 / 0.77 GB, free: 15.35 MB / 0.545 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.345e-05/0.4444, allocations: 116.3 kB / 0.7701 GB, free: 15.23 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.137e-06/0.4444, allocations: 3.938 kB / 0.7701 GB, free: 15.22 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.452e-05/0.4445, allocations: 44.75 kB / 0.7701 GB, free: 15.18 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.794e-06/0.4445, allocations: 0 / 0.7701 GB, free: 15.18 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.18e-06/0.4445, allocations: 4 kB / 0.7701 GB, free: 15.17 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.505e-06/0.4445, allocations: 0 / 0.7701 GB, free: 15.17 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.211e-05/0.4446, allocations: 141.7 kB / 0.7703 GB, free: 14.98 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.4446, allocations: 4.031 kB / 0.7703 GB, free: 14.98 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.761e-05/0.4446, allocations: 3.984 kB / 0.7703 GB, free: 14.98 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.246e-06/0.4446, allocations: 7.938 kB / 0.7703 GB, free: 14.97 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.22e-06/0.4446, allocations: 0 / 0.7703 GB, free: 14.97 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.835e-06/0.4446, allocations: 4 kB / 0.7703 GB, free: 14.96 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.4447, allocations: 0 / 0.7703 GB, free: 14.96 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.191e-05/0.4447, allocations: 61.08 kB / 0.7703 GB, free: 14.89 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 3.088e-05/0.4448, allocations: 81.05 kB / 0.7704 GB, free: 14.79 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.056e-05/0.4448, allocations: 8.016 kB / 0.7704 GB, free: 14.78 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.007e-06/0.4448, allocations: 0 / 0.7704 GB, free: 14.78 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.546e-06/0.4448, allocations: 0 / 0.7704 GB, free: 14.78 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.033e-06/0.4448, allocations: 0 / 0.7704 GB, free: 14.78 MB / 0.545 GB Notification: Performance of sorting global known variables: time 2.121e-05/0.4448, allocations: 75.28 kB / 0.7705 GB, free: 14.71 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4448, allocations: 0 / 0.7705 GB, free: 14.71 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0001824/0.445, allocations: 8 kB / 0.7705 GB, free: 14.7 MB / 0.545 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.0003386/0.4454, allocations: 0.6046 MB / 0.7711 GB, free: 14.06 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 6.407e-05/0.4454, allocations: 7.938 kB / 0.7711 GB, free: 14.05 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.4455, allocations: 0 / 0.7711 GB, free: 14.05 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 7.895e-06/0.4455, allocations: 4 kB / 0.7711 GB, free: 14.05 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001262/0.4456, allocations: 4.75 kB / 0.7711 GB, free: 14.05 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002657/0.4459, allocations: 114.8 kB / 0.7712 GB, free: 13.89 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001806/0.4461, allocations: 0.669 MB / 0.7719 GB, free: 13.2 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 1.919e-05/0.4461, allocations: 4 kB / 0.7719 GB, free: 13.2 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.462e-05/0.4461, allocations: 7.438 kB / 0.7719 GB, free: 13.19 MB / 0.545 GB Notification: Performance of SimCode: time 2.2e-07/0.4461, allocations: 0 / 0.7719 GB, free: 13.19 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0163/0.4624, allocations: 1.047 MB / 0.7729 GB, free: 12.28 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.911/7.374, allocations: 16.81 kB / 0.7729 GB, free: 12.27 MB / 0.545 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_SpliceFunction_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_SpliceFunction.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction.pipe 2>&1)