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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00542/0.00542, allocations: 102.1 kB / 15.73 MB, free: 6.492 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.001317/0.001317, allocations: 191.7 kB / 16.67 MB, free: 6.379 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.306/1.306, allocations: 222.9 MB / 240.4 MB, free: 4.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002148/0.002148, allocations: 286.8 kB / 290.8 MB, free: 1.953 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9152/0.9152, allocations: 169.3 MB / 0.4983 GB, free: 13.82 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001768/0.001768, allocations: 95.95 kB / 0.681 GB, free: 15.93 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1584/0.1602, allocations: 86.98 MB / 0.766 GB, free: 8.875 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001718/0.1619, allocations: 0.615 MB / 0.7666 GB, free: 8.262 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001858/0.1638, allocations: 1.271 MB / 0.7678 GB, free: 6.973 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.433e-05/0.1639, allocations: 0 / 0.7678 GB, free: 6.973 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 1.795e-05/0.1639, allocations: 0 / 0.7678 GB, free: 6.973 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 3.123e-05/0.164, allocations: 4 kB / 0.7678 GB, free: 6.969 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005534/0.1645, allocations: 83.66 kB / 0.7679 GB, free: 6.887 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 7.779e-05/0.1646, allocations: 23.92 kB / 0.7679 GB, free: 6.863 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 5.56e-05/0.1647, allocations: 288 / 0.7679 GB, free: 6.863 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 3.646e-05/0.1647, allocations: 15.98 kB / 0.7679 GB, free: 6.848 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 9.388e-05/0.1648, allocations: 11.92 kB / 0.7679 GB, free: 6.836 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.464e-05/0.1648, allocations: 0 / 0.7679 GB, free: 6.836 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003012/0.1651, allocations: 99.89 kB / 0.768 GB, free: 6.738 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 2.039e-05/0.1652, allocations: 4 kB / 0.768 GB, free: 6.734 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 3.793e-05/0.1652, allocations: 23.91 kB / 0.768 GB, free: 6.711 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001855/0.1654, allocations: 63.86 kB / 0.7681 GB, free: 6.648 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 6.001e-06/0.1654, allocations: 4 kB / 0.7681 GB, free: 6.645 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.904e-06/0.1654, allocations: 0 / 0.7681 GB, free: 6.645 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 6.522e-06/0.1654, allocations: 0 / 0.7681 GB, free: 6.645 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0005542/0.166, allocations: 355.4 kB / 0.7685 GB, free: 6.25 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 5.036e-05/0.1661, allocations: 8.031 kB / 0.7685 GB, free: 6.242 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.953e-05/0.1661, allocations: 30.75 kB / 0.7685 GB, free: 6.203 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.669e-05/0.1662, allocations: 8.938 kB / 0.7685 GB, free: 6.195 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001528/0.1663, allocations: 172.3 kB / 0.7687 GB, free: 5.988 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.97e-05/0.1663, allocations: 8.375 kB / 0.7687 GB, free: 5.98 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.563e-05/0.1664, allocations: 4.312 kB / 0.7687 GB, free: 5.977 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001353/0.1665, allocations: 57.8 kB / 0.7687 GB, free: 5.914 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.479e-05/0.1665, allocations: 7.906 kB / 0.7687 GB, free: 5.906 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.318e-05/0.1665, allocations: 3.984 kB / 0.7687 GB, free: 5.902 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.368e-06/0.1666, allocations: 0 / 0.7687 GB, free: 5.902 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.714e-05/0.1666, allocations: 19.98 kB / 0.7688 GB, free: 5.883 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001843/0.1668, allocations: 169.7 kB / 0.7689 GB, free: 5.668 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001153/0.1669, allocations: 62.5 kB / 0.769 GB, free: 5.598 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.512e-05/0.167, allocations: 28.84 kB / 0.769 GB, free: 5.566 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005515/0.1676, allocations: 0.5544 MB / 0.7696 GB, free: 4.883 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.159e-05/0.1676, allocations: 42.48 kB / 0.7696 GB, free: 4.832 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=8): time 1.152e-06/0.1676, allocations: 3.938 kB / 0.7696 GB, free: 4.828 MB / 0.5606 GB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: x 2: deltax Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=17): time 0.01883/0.1864, allocations: 4.367 MB / 0.7739 GB, free: 328 kB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.687e-05/0.1865, allocations: 51.41 kB / 0.7739 GB, free: 264 kB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.063e-05/0.1866, allocations: 101.8 kB / 0.774 GB, free: 152 kB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 6.661e-05/0.1866, allocations: 29.7 kB / 0.774 GB, free: 116 kB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 2.594e-05/0.1867, allocations: 80.14 kB / 0.7741 GB, free: 32 kB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.2958/0.4825, allocations: 57.17 kB / 0.7742 GB, free: 15.09 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003197/0.4829, allocations: 92.34 kB / 0.7743 GB, free: 15.08 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 5.708e-05/0.4829, allocations: 322.4 kB / 0.7746 GB, free: 14.77 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000569/0.4835, allocations: 307.9 kB / 0.7749 GB, free: 14.77 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00052/0.484, allocations: 315.7 kB / 0.7752 GB, free: 14.77 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001386/0.4854, allocations: 0.7708 MB / 0.7759 GB, free: 14.68 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.4854, allocations: 0 / 0.7759 GB, free: 14.68 MB / 0.5606 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001493/0.4869, allocations: 0.7968 MB / 0.7767 GB, free: 14.36 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.933e-05/0.487, allocations: 9.219 kB / 0.7767 GB, free: 14.36 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.083e-06/0.487, allocations: 4.766 kB / 0.7767 GB, free: 14.36 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.883e-05/0.487, allocations: 1.906 kB / 0.7767 GB, free: 14.36 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000789/0.4878, allocations: 91.55 kB / 0.7768 GB, free: 14.36 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.652e-06/0.4878, allocations: 1.844 kB / 0.7768 GB, free: 14.36 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004602/0.4883, allocations: 11.41 kB / 0.7768 GB, free: 14.35 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.219e-05/0.4883, allocations: 36.58 kB / 0.7768 GB, free: 14.35 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 (18): * Single equations (assignments): 18 * 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 0.0001554/0.4885, allocations: 118.5 kB / 0.7769 GB, free: 14.23 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.001e-05/0.4886, allocations: 8 kB / 0.777 GB, free: 14.23 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002759/0.4914, allocations: 1.404 MB / 0.7783 GB, free: 13.66 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.69e-06/0.4914, allocations: 3.656 kB / 0.7783 GB, free: 13.66 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.019e-06/0.4914, allocations: 3.938 kB / 0.7783 GB, free: 13.66 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.182e-06/0.4914, allocations: 2.719 kB / 0.7783 GB, free: 13.66 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002519/0.4939, allocations: 1.805 MB / 0.7801 GB, free: 12.65 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.386e-06/0.4939, allocations: 1.281 kB / 0.7801 GB, free: 12.65 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007182/0.4947, allocations: 103.5 kB / 0.7802 GB, free: 12.65 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.909e-06/0.4947, allocations: 2.984 kB / 0.7802 GB, free: 12.65 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.369e-05/0.4947, allocations: 31.62 kB / 0.7802 GB, free: 12.64 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.399e-06/0.4948, allocations: 8.438 kB / 0.7802 GB, free: 12.64 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.4948, allocations: 0.7031 kB / 0.7802 GB, free: 12.64 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002048/0.4968, allocations: 1.472 MB / 0.7817 GB, free: 11.88 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 2.446e-05/0.4968, allocations: 94.48 kB / 0.7818 GB, free: 11.78 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.725e-05/0.4969, allocations: 10.5 kB / 0.7818 GB, free: 11.77 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004491/0.4974, allocations: 15.08 kB / 0.7818 GB, free: 11.77 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001272/0.4975, allocations: 42.89 kB / 0.7818 GB, free: 11.76 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.635e-05/0.4976, allocations: 35.2 kB / 0.7819 GB, free: 11.76 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 1.874e-05/0.4976, allocations: 80.3 kB / 0.7819 GB, free: 11.68 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.31e-07/0.4976, allocations: 0.625 kB / 0.7819 GB, free: 11.68 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0005487/0.4982, allocations: 176.8 kB / 0.7821 GB, free: 11.68 MB / 0.5606 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 () * Number of clocked 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 (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.002311/0.5005, allocations: 2.137 MB / 0.7842 GB, free: 10.37 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0009672/0.5015, allocations: 0.7237 MB / 0.7849 GB, free: 10.08 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.5015, allocations: 1.312 kB / 0.7849 GB, free: 10.08 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0005045/0.502, allocations: 455.4 kB / 0.7853 GB, free: 9.879 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002984/0.5023, allocations: 16.34 kB / 0.7854 GB, free: 9.867 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005958/0.5083, allocations: 3.717 MB / 0.789 GB, free: 7.684 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001087/0.5084, allocations: 0.7156 MB / 0.7897 GB, free: 6.988 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0008571/0.5093, allocations: 296.1 kB / 0.79 GB, free: 6.836 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005185/0.5098, allocations: 115.9 kB / 0.7901 GB, free: 6.805 MB / 0.5606 GB Notification: Performance of SimCode: time 3.41e-07/0.5098, allocations: 2.281 kB / 0.7901 GB, free: 6.805 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03559/0.5454, allocations: 13.05 MB / 0.8028 GB, free: 4.816 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.157/7.702, allocations: 16.14 kB / 0.8028 GB, free: 4.809 MB / 0.5606 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/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)