Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/ModelicaServices 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) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8303/0.8303, allocations: 141.7 MB / 154.3 MB, free: 15.49 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002287/0.002287, allocations: 181.6 kB / 187.3 MB, free: 11.89 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.528/1.528, allocations: 221.3 MB / 441.4 MB, free: 4.617 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001447/0.001447, allocations: 99.45 kB / 0.5124 GB, free: 24.16 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002226/0.002226, allocations: 274.5 kB / 0.5939 GB, free: 7.98 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 5.751e-05/5.76e-05, allocations: 8 kB / 0.6835 GB, free: 12.16 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5323/0.5324, allocations: 82.77 MB / 0.7644 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1257/0.6582, allocations: 109.1 MB / 0.871 GB, free: 15.42 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002653/0.6585, allocations: 83.89 kB / 0.871 GB, free: 15.34 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.006983/0.6655, allocations: 2.387 MB / 0.8734 GB, free: 12.96 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.292e-06/0.6655, allocations: 0 / 0.8734 GB, free: 12.96 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 6.462e-06/0.6656, allocations: 0 / 0.8734 GB, free: 12.96 MB / 0.5417 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0003372/0.6659, allocations: 355.6 kB / 0.8737 GB, free: 12.57 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.334e-05/0.666, allocations: 8.031 kB / 0.8737 GB, free: 12.56 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.31e-05/0.666, allocations: 34.56 kB / 0.8737 GB, free: 12.52 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.823e-05/0.666, allocations: 4 kB / 0.8738 GB, free: 12.52 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001319/0.6662, allocations: 167.1 kB / 0.8739 GB, free: 12.31 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.207e-05/0.6662, allocations: 7.953 kB / 0.8739 GB, free: 12.3 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.77e-05/0.6662, allocations: 7.906 kB / 0.8739 GB, free: 12.3 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000123/0.6664, allocations: 49.69 kB / 0.874 GB, free: 12.24 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.477e-05/0.6664, allocations: 0 / 0.874 GB, free: 12.24 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.143e-05/0.6664, allocations: 3.938 kB / 0.874 GB, free: 12.24 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.057e-06/0.6664, allocations: 0 / 0.874 GB, free: 12.24 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.45e-05/0.6665, allocations: 23.98 kB / 0.874 GB, free: 12.21 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001767/0.6667, allocations: 169.6 kB / 0.8742 GB, free: 12 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001149/0.6668, allocations: 58.53 kB / 0.8742 GB, free: 11.93 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.097e-05/0.6668, allocations: 24.84 kB / 0.8742 GB, free: 11.91 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004936/0.6673, allocations: 0.5622 MB / 0.8748 GB, free: 11.21 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.919e-05/0.6674, allocations: 38.5 kB / 0.8748 GB, free: 11.17 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=8): time 1.062e-06/0.6674, allocations: 3.938 kB / 0.8748 GB, free: 11.16 MB / 0.5417 GB Notification: Performance of matching and sorting (n=17): time 0.01456/0.6819, allocations: 3.638 MB / 0.8784 GB, free: 7.387 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.982e-05/0.682, allocations: 51.41 kB / 0.8784 GB, free: 7.324 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.567e-05/0.6821, allocations: 89 kB / 0.8785 GB, free: 7.23 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 6.777e-05/0.6822, allocations: 29.7 kB / 0.8785 GB, free: 7.195 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 3.252e-05/0.6822, allocations: 80.14 kB / 0.8786 GB, free: 7.113 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001007/0.6823, allocations: 55.17 kB / 0.8787 GB, free: 7.059 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.618e-05/0.6824, allocations: 4 kB / 0.8787 GB, free: 7.055 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.000126/0.6825, allocations: 322.9 kB / 0.879 GB, free: 6.73 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004798/0.683, allocations: 300 kB / 0.8793 GB, free: 6.438 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004947/0.6835, allocations: 309.5 kB / 0.8796 GB, free: 6.137 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006884/0.6842, allocations: 357.1 kB / 0.8799 GB, free: 5.789 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.61e-07/0.6842, allocations: 7.938 kB / 0.8799 GB, free: 5.781 MB / 0.5417 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001434/0.6857, allocations: 0.7637 MB / 0.8807 GB, free: 5.012 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.991e-05/0.6857, allocations: 4 kB / 0.8807 GB, free: 5.008 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.752e-06/0.6857, allocations: 0 / 0.8807 GB, free: 5.008 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.704e-05/0.6857, allocations: 3.984 kB / 0.8807 GB, free: 5.004 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007912/0.6865, allocations: 95.89 kB / 0.8808 GB, free: 4.91 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.186e-06/0.6866, allocations: 8 kB / 0.8808 GB, free: 4.902 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004716/0.687, allocations: 4 kB / 0.8808 GB, free: 4.898 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.736e-05/0.6871, allocations: 35.97 kB / 0.8808 GB, free: 4.863 MB / 0.5417 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001749/0.6873, allocations: 116.9 kB / 0.8809 GB, free: 4.742 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.793e-05/0.6874, allocations: 0 / 0.8809 GB, free: 4.742 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003275/0.6907, allocations: 1.377 MB / 0.8823 GB, free: 3.363 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.3e-06/0.6907, allocations: 8 kB / 0.8823 GB, free: 3.355 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.783e-06/0.6907, allocations: 0 / 0.8823 GB, free: 3.355 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.566e-06/0.6907, allocations: 7.984 kB / 0.8823 GB, free: 3.348 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002805/0.6935, allocations: 1.773 MB / 0.884 GB, free: 1.512 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/0.6935, allocations: 0 / 0.884 GB, free: 1.512 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007441/0.6943, allocations: 107.9 kB / 0.8841 GB, free: 1.406 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.442e-06/0.6943, allocations: 8.031 kB / 0.8841 GB, free: 1.398 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7e-05/0.6944, allocations: 24 kB / 0.8841 GB, free: 1.375 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.682e-06/0.6944, allocations: 11.89 kB / 0.8842 GB, free: 1.363 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.6944, allocations: 0 / 0.8842 GB, free: 1.363 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002241/0.6967, allocations: 1.435 MB / 0.8856 GB, free: 15.9 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 4.721e-05/0.6967, allocations: 100.9 kB / 0.8857 GB, free: 15.79 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8e-05/0.6968, allocations: 12.02 kB / 0.8857 GB, free: 15.77 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004781/0.6973, allocations: 12 kB / 0.8857 GB, free: 15.76 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001358/0.6974, allocations: 39.97 kB / 0.8857 GB, free: 15.72 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.173e-05/0.6975, allocations: 28 kB / 0.8857 GB, free: 15.7 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 4.565e-05/0.6976, allocations: 79.28 kB / 0.8858 GB, free: 15.62 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6976, allocations: 0 / 0.8858 GB, free: 15.62 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.0006239/0.6982, allocations: 207.7 kB / 0.886 GB, free: 15.41 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (y_comp) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002952/0.7012, allocations: 2.197 MB / 0.8882 GB, free: 13.18 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.001171/0.7023, allocations: 0.7009 MB / 0.8888 GB, free: 12.48 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.7024, allocations: 0 / 0.8888 GB, free: 12.48 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0006252/0.703, allocations: 443.8 kB / 0.8893 GB, free: 12.05 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002038/0.7032, allocations: 16.12 kB / 0.8893 GB, free: 12.04 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003508/0.7067, allocations: 0.83 MB / 0.8901 GB, free: 11.16 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003034/0.707, allocations: 0.7182 MB / 0.8908 GB, free: 10.41 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.001373/0.7084, allocations: 293.3 kB / 0.8911 GB, free: 10.13 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005662/0.709, allocations: 119.4 kB / 0.8912 GB, free: 10.02 MB / 0.5573 GB Notification: Performance of SimCode: time 4.81e-07/0.709, allocations: 0 / 0.8912 GB, free: 10.02 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02587/0.7349, allocations: 11.51 MB / 0.9024 GB, free: 14.7 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002474/0.7352, allocations: 193.5 kB / 0.9026 GB, free: 14.47 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.901/2.637, allocations: 2.406 kB / 0.9026 GB, free: 14.47 MB / 0.573 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1)